1
0
Fork 0
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:
Markus Schorn 2007-04-06 09:32:52 +00:00
parent 0addd64850
commit 56523f3c6a

View file

@ -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.