mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Fixes occasional NPE in CModelTests
This commit is contained in:
parent
0addd64850
commit
56523f3c6a
1 changed files with 1 additions and 4 deletions
|
@ -14,7 +14,6 @@ import java.io.FileInputStream;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.core.dom.IPDOMManager;
|
||||
import org.eclipse.cdt.core.model.ICProject;
|
||||
import org.eclipse.cdt.core.testplugin.CProjectHelper;
|
||||
|
@ -97,7 +96,7 @@ public class TranslationUnitBaseTest extends TestCase
|
|||
* tests
|
||||
*/
|
||||
|
||||
testProject=CProjectHelper.createCProject("filetest", "none", IPDOMManager.ID_FAST_INDEXER);
|
||||
testProject=CProjectHelper.createCProject("filetest", "none", IPDOMManager.ID_NO_INDEXER);
|
||||
if (testProject==null)
|
||||
fail("Unable to create project");
|
||||
|
||||
|
@ -140,8 +139,6 @@ public class TranslationUnitBaseTest extends TestCase
|
|||
false, monitor);
|
||||
}
|
||||
archpath=new Path(workspace.getRoot().getLocation()+"/filetest/libtestlib_g.a");
|
||||
|
||||
CCorePlugin.getIndexManager().joinIndexer(1000, new NullProgressMonitor());
|
||||
}
|
||||
/**
|
||||
* Tears down the test fixture.
|
||||
|
|
Loading…
Add table
Reference in a new issue