1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 05:45:58 +02:00

Place each test run in its own project

This helps add some isolation between tests in case background
threads are accessing a project. However I am not sure
this solves any of the actual outstanding flaky tests.

Part of #117
This commit is contained in:
Jonah Graham 2022-10-29 18:59:53 -04:00
parent f8dee45ba3
commit 7673c856b6

View file

@ -103,8 +103,9 @@ public class IndexUpdateTests extends IndexTestBase {
@Override @Override
public void setUp() throws Exception { public void setUp() throws Exception {
super.setUp(); super.setUp();
fCppProject = CProjectHelper.createCCProject("indexUpdateTestsCpp", null, IPDOMManager.ID_FAST_INDEXER); fCppProject = CProjectHelper.createCCProject("indexUpdateTestsCpp_" + getName(), null,
fCProject = CProjectHelper.createCProject("indexUpdateTestsC", null, IPDOMManager.ID_FAST_INDEXER); IPDOMManager.ID_FAST_INDEXER);
fCProject = CProjectHelper.createCProject("indexUpdateTestsC_" + getName(), null, IPDOMManager.ID_FAST_INDEXER);
waitForIndexer(fCppProject); waitForIndexer(fCppProject);
waitForIndexer(fCProject); waitForIndexer(fCProject);
fIndex = CCorePlugin.getIndexManager().getIndex(new ICProject[] { fCProject, fCppProject }); fIndex = CCorePlugin.getIndexManager().getIndex(new ICProject[] { fCProject, fCppProject });