Bug 302379 - [search] JavaSearchTests.testZIPArchive2() test failed in I20100209-0800
Summary: [search] JavaSearchTests.testZIPArchive2() test failed in I20100209-0800
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-10 03:29 EST by Frederic Fusier CLA
Modified: 2010-03-08 13:28 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.23 KB, patch)
2010-02-10 04:18 EST, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2010-02-10 03:29:59 EST
JavaSearchTests.testZIPArchive2() test failed in I20100209-0800 with the following stack trace:

Unexpected search results. ----------- Expected ------------ ExternalType (not open) [in ExternalType.class [in p [in C:\buildtest\I20100209-0800\eclipse-testing\test-eclipse\eclipse\jdt_model_folder\externalLib.abc]]] ------------ but was ------------ --------- Difference is ---------- expected:<[ExternalType (not open) [in ExternalType.class [in p [in C:\buildtest\I20100209-0800\eclipse-testing\test-eclipse\eclipse\jdt_model_folder\externalLib.abc]]]]> but was:<[]>

junit.framework.ComparisonFailure: Unexpected search results.
----------- Expected ------------
ExternalType (not open) [in ExternalType.class [in p [in C:\buildtest\I20100209-0800\eclipse-testing\test-eclipse\eclipse\jdt_model_folder\externalLib.abc]]]
------------ but was ------------

--------- Difference is ----------
expected:<[ExternalType (not open) [in ExternalType.class [in p [in C:\buildtest\I20100209-0800\eclipse-testing\test-eclipse\eclipse\jdt_model_folder\externalLib.abc]]]]> but was:<[]>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:230)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:206)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:362)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:352)
at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertSearchResults(AbstractJavaModelTests.java:349)
at org.eclipse.jdt.core.tests.model.JavaSearchTests.testZIPArchive2(JavaSearchTests.java:704)
Comment 1 Frederic Fusier CLA 2010-02-10 04:18:40 EST
Created attachment 158679 [details]
Proposed patch

It seems that waiting for the indexes to be ready was missing in this kind of tests...
Comment 2 Frederic Fusier CLA 2010-02-10 04:20:05 EST
Released for 3.6M6 in HEAD stream.
Comment 3 Olivier Thomann CLA 2010-03-08 13:28:34 EST
Verified for 3.6M6 using I20100307-2000.