mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
484ec88e27
commit
bcb582c6dd
3 changed files with 29 additions and 36 deletions
|
@ -48,8 +48,8 @@ public class IndexIncludeTest extends IndexTestBase {
|
|||
return suite;
|
||||
}
|
||||
|
||||
private ICProject fProject= null;
|
||||
private IIndex fIndex= null;
|
||||
private ICProject fProject;
|
||||
private IIndex fIndex;
|
||||
|
||||
public IndexIncludeTest(String name) {
|
||||
super(name);
|
||||
|
@ -61,8 +61,8 @@ public class IndexIncludeTest extends IndexTestBase {
|
|||
if (fProject == null) {
|
||||
fProject= createProject(true, "resources/indexTests/includes");
|
||||
IPathEntry[] entries= new IPathEntry[] {
|
||||
CoreModel.newIncludeEntry(fProject.getPath(),
|
||||
null, fProject.getResource().getLocation())};
|
||||
CoreModel.newIncludeEntry(fProject.getPath(), null,
|
||||
fProject.getResource().getLocation()) };
|
||||
fProject.setRawPathEntries(entries, npm());
|
||||
}
|
||||
fIndex= CCorePlugin.getIndexManager().getIndex(fProject);
|
||||
|
@ -446,7 +446,6 @@ public class IndexIncludeTest extends IndexTestBase {
|
|||
source[0].toString() + "\nint h20070427;");
|
||||
TestSourceReader.waitUntilFileIsIndexed(fIndex, s1, INDEXER_WAIT_TIME);
|
||||
standardCheckUpdateIncludes(header, s1, "h20070427");
|
||||
|
||||
}
|
||||
|
||||
private void standardCheckUpdateIncludes(IFile header, IFile s1, String tag) throws Exception {
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.internal.index.tests;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -129,8 +128,7 @@ public class IndexNamesTests extends BaseTestCase {
|
|||
enclosing= enclosed[1].getEnclosingDefinition();
|
||||
assertNotNull(enclosing);
|
||||
assertName("main", enclosing);
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
fIndex.releaseReadLock();
|
||||
}
|
||||
}
|
||||
|
@ -223,8 +221,7 @@ public class IndexNamesTests extends BaseTestCase {
|
|||
enclosing= enclosed[2].getEnclosingDefinition();
|
||||
assertNotNull(enclosing);
|
||||
assertName("func", enclosing);
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
fIndex.releaseReadLock();
|
||||
}
|
||||
}
|
||||
|
@ -274,8 +271,7 @@ public class IndexNamesTests extends BaseTestCase {
|
|||
assertEquals(couldbepolymorphic[j], indexName.couldBePolymorphicMethodCall());
|
||||
assertEquals(container[j], CPPVisitor.getQualifiedName(fIndex.findBinding(indexName))[0]);
|
||||
j++;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
assertEquals(false, indexName.couldBePolymorphicMethodCall());
|
||||
}
|
||||
}
|
||||
|
@ -285,7 +281,6 @@ public class IndexNamesTests extends BaseTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// int _i, ri, wi, rwi;
|
||||
// int* rp; int* wp; int* rwp;
|
||||
// const int* cip= &ri;
|
||||
|
@ -339,14 +334,12 @@ public class IndexNamesTests extends BaseTestCase {
|
|||
assertEquals("Read access for " + msg, isRead, indexName.isReadAccess());
|
||||
assertEquals("Write access for " + msg, isWrite, indexName.isWriteAccess());
|
||||
j++;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
assertEquals(false, indexName.couldBePolymorphicMethodCall());
|
||||
}
|
||||
}
|
||||
assertEquals(count, j);
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
fIndex.releaseReadLock();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,7 +155,8 @@ public class BaseUITestCase extends BaseTestCase {
|
|||
protected void runEventQueue(int time) {
|
||||
final long endTime= System.currentTimeMillis() + time;
|
||||
while (true) {
|
||||
while (Display.getCurrent().readAndDispatch());
|
||||
while (Display.getCurrent().readAndDispatch())
|
||||
;
|
||||
long diff= endTime - System.currentTimeMillis();
|
||||
if (diff <= 0) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue