1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

Attempt to fix occasional test failures.

This commit is contained in:
Markus Schorn 2010-08-04 14:25:54 +00:00
parent 02fee4a8d3
commit afe222fa0c

View file

@ -357,7 +357,7 @@ public class IndexBugsTests extends BaseTestCase {
public void test154563() throws Exception {
// Because of fix for http://bugs.eclipse.org/193779 this test case passes.
// However http://bugs.eclipse.org/154563 remains to be fixed.
String[] content= getContentsForTest(3);
String[] content= getContentsForTest(2);
IFile file= createFile(getProject(), "header.h", content[0]);
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);
@ -373,7 +373,7 @@ public class IndexBugsTests extends BaseTestCase {
index.releaseReadLock();
}
file.setContents(new ByteArrayInputStream(content[1].getBytes()), true, false, npm());
file= createFile(getProject(), "header.h", content[1]);
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);
index= CCorePlugin.getIndexManager().getIndex(fCProject);
@ -809,7 +809,7 @@ public class IndexBugsTests extends BaseTestCase {
index.releaseReadLock();
}
file.setContents(new ByteArrayInputStream(content[1].getBytes()), true, false, npm());
file= createFile(getProject(), "header.h", content[1]);
waitUntilFileIsIndexed(file, INDEX_WAIT_TIME);
index= CCorePlugin.getIndexManager().getIndex(fCProject);