Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 150855 Details for
Bug 293697
JavaSearchBugTests.testBug286379c is failing randomly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 2.09 KB, created by
Frederic Fusier
on 2009-10-29 13:40:43 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2009-10-29 13:40:43 EDT
Size:
2.09 KB
patch
obsolete
>### 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.176 >diff -u -r1.176 JavaSearchBugsTests.java >--- src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 29 Oct 2009 17:10:51 -0000 1.176 >+++ src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java 29 Oct 2009 17:36:09 -0000 >@@ -10919,10 +10919,12 @@ > * atleast on the restart of the workspace. > * If any javaLikeNames are deleted, this ensures that the index file is regenerated. > */ >-// TODO (Satyam) Enable when bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=293697 is fixed >-public void _testBug286379c() throws CoreException { >+public void testBug286379c() throws CoreException { > IContentType javaContentType = Platform.getContentTypeManager().getContentType(JavaCore.JAVA_SOURCE_CONTENT_TYPE); > try { >+ // Create resource and wait for the refresh as we do not want the >+ // indexing to be triggered by the resource change event after the >+ // Java Source content type will be added > IJavaProject proj = createJavaProject("P"); > IPath projPath = proj.getPath(); > createFolder("/P/p"); >@@ -10932,6 +10934,10 @@ > "public class Xtorem {\n" + > "}" > ); >+ refresh(proj); >+ >+ // Wait to be sure that indexes are ready as we want to see whether >+ // they'll be updated or not while adding a Java Source content type > waitUntilIndexesReady(); > > assertNotNull("We should have got a Java Source a content type!", javaContentType); >@@ -10973,6 +10979,12 @@ > > // Restarting should update the index file to remove the references of any .torem files > simulateExit(); >+ try { >+ Thread.sleep(1500); // wait more than one second to be sure that modified time will be different >+ } >+ catch (InterruptedException ie) { >+ // skip >+ } > simulateRestart(); > > waitUntilIndexesReady();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 293697
:
150855
|
151092
|
154072