mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Fix pdom-locks in CPPClassTemplateTests
This commit is contained in:
parent
911c189dfb
commit
fcfb9ae587
1 changed files with 3 additions and 1 deletions
|
@ -64,12 +64,14 @@ public class CPPClassTemplateTests extends PDOMTestBase {
|
|||
CCorePlugin.getIndexManager().reindex(cproject);
|
||||
assertTrue(CCorePlugin.getIndexManager().joinIndexer(360000, new NullProgressMonitor()));
|
||||
pdom= (PDOM) CCoreInternals.getPDOMManager().getPDOM(cproject);
|
||||
pdom.acquireReadLock();
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
if(pdom!=null) {
|
||||
pdom.releaseWriteLock();
|
||||
pdom.releaseReadLock();
|
||||
}
|
||||
pdom= null;
|
||||
cproject.getProject().delete(true, NPM);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue