1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +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
public void setUp() throws Exception {
super.setUp();
fCppProject = CProjectHelper.createCCProject("indexUpdateTestsCpp", null, IPDOMManager.ID_FAST_INDEXER);
fCProject = CProjectHelper.createCProject("indexUpdateTestsC", null, IPDOMManager.ID_FAST_INDEXER);
fCppProject = CProjectHelper.createCCProject("indexUpdateTestsCpp_" + getName(), null,
IPDOMManager.ID_FAST_INDEXER);
fCProject = CProjectHelper.createCProject("indexUpdateTestsC_" + getName(), null, IPDOMManager.ID_FAST_INDEXER);
waitForIndexer(fCppProject);
waitForIndexer(fCProject);
fIndex = CCorePlugin.getIndexManager().getIndex(new ICProject[] { fCProject, fCppProject });