Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 463153 - [test][builder] test failures in BasicBuildTests and BuildPathTests
Summary: [test][builder] test failures in BasicBuildTests and BuildPathTests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.5 M7   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 461838
Blocks:
  Show dependency tree
 
Reported: 2015-03-26 04:11 EDT by Sasikanth Bharadwaj CLA
Modified: 2015-04-02 12:09 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sasikanth Bharadwaj CLA 2015-03-26 04:11:39 EDT
Platforms: all

build Id: N20150325-2000

http://download.eclipse.org/eclipse/downloads/drops4/N20150325-2000/testResults.php

testbBug386901	Failure	Invalid problem(s)!!!. ----------- Expected ------------ Problem : AZ cannot be resolved to a type [ resource : </Project/src/p/AB.java> range : <36,38> category : <40> severity : <2>] ------------ but was ------------ --------- Difference is ---------- expected:<[Problem : AZ cannot be resolved to a type [ resource : </Project/src/p/AB.java> range : <36,38> category : <40> severity : <2>]]> but was:<[]>

junit.framework.ComparisonFailure: Invalid problem(s)!!!.
----------- Expected ------------
Problem : AZ cannot be resolved to a type [ resource : </Project/src/p/AB.java> range : <36,38> category : <40> severity : <2>]
------------ but was ------------

--------- Difference is ----------
expected:<[Problem : AZ cannot be resolved to a type [ resource : </Project/src/p/AB.java> range : <36,38> category : <40> severity : <2>]]> but was:<[]>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:268)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assumeEquals(TestCase.java:288)
at org.eclipse.jdt.core.tests.builder.BuilderTests.expectingProblemsFor(BuilderTests.java:333)
at org.eclipse.jdt.core.tests.builder.BuilderTests.expectingProblemsFor(BuilderTests.java:326)
at org.eclipse.jdt.core.tests.builder.BasicBuildTests.testbBug386901(BasicBuildTests.java:600)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:657)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:310)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
at org.eclipse.core.launcher.Main.main(Main.java:34)

testMissingLibrary2	Failure	missing expected problem: Problem : The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files [ resource : </Project/src/p1/Test1.java> range : <-1,-1> category : <-1> severity : <2>]

junit.framework.AssertionFailedError: missing expected problem: Problem : The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files [ resource : </Project/src/p1/Test1.java> range : <-1,-1> category : <-1> severity : <2>]
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assumeTrue(TestCase.java:350)
at org.eclipse.jdt.core.tests.builder.BuilderTests.expectingSpecificProblemsFor(BuilderTests.java:389)
at org.eclipse.jdt.core.tests.builder.BuilderTests.expectingSpecificProblemFor(BuilderTests.java:354)
at org.eclipse.jdt.core.tests.builder.BuildpathTests.testMissingLibrary2(BuildpathTests.java:670)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:657)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:310)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Sasikanth Bharadwaj CLA 2015-03-27 04:18:59 EDT
Failed in N20150325-2000 as well.
Platform: all

http://download.eclipse.org/eclipse/downloads/drops4/N20150326-2000/testResults.php
Comment 2 Stephan Herrmann CLA 2015-03-27 19:45:24 EDT
Gee, how can this consistently fail on all platforms, twice in a row, but pass when run locally?

Has it been failing in any Gerrit jobs?
Comment 3 Stephan Herrmann CLA 2015-03-28 09:10:28 EDT
(In reply to Stephan Herrmann from comment #2)
> Gee, how can this consistently fail on all platforms, twice in a row, but
> pass when run locally?
> 
> Has it been failing in any Gerrit jobs?

To answer my own question, it also failed via Gerrit:

https://hudson.eclipse.org/platform/job/eclipse.jdt.core-Gerrit/151/testReport/org.eclipse.jdt.core.tests.builder/BasicBuildTests/testbBug386901/

https://hudson.eclipse.org/platform/job/eclipse.jdt.core-Gerrit/151/testReport/org.eclipse.jdt.core.tests.builder/BuildpathTests/testMissingLibrary2/
Comment 5 Markus Keller CLA 2015-03-30 09:36:14 EDT
Instead of disabling and forgetting the tests, let's just adapt them to the new build order.

Fixed with http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=c7f9539fa0d2c7dd5ba718179636fb1d50eefced
Comment 6 Jay Arthanareeswaran CLA 2015-04-02 12:09:26 EDT
Verified for 4.5 M7 with build I20150331-0800.