### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.model Index: src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java,v retrieving revision 1.183 diff -u -r1.183 JavaSearchBugsTests.java --- src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 1 Dec 2009 10:45:44 -0000 1.183 +++ src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 8 Dec 2009 22:23:49 -0000 @@ -10991,6 +10991,11 @@ // Wait to be sure that indexes are ready after the new resource was added waitUntilIndexesReady(); + // Restart to let the indexes to be refreshed + simulateExit(); + simulateRestart(); + waitUntilIndexesReady(); + // Search for the new type with new extension TypeNameMatchCollector collector = new TypeNameMatchCollector(); new SearchEngine().searchAllTypeNames( @@ -11001,8 +11006,9 @@ IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, null); assertSearchResults("Unexpected search results!", - "Xtorem (not open) [in Xtorem.torem [in p [in [in P]]]]", - collector); + "Xtorem (not open) [in Xtorem.torem [in p [in [in P]]]]", + collector, + false /*only assume*/); // Delete the file specification javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);