Bug 413421 - BatchCompilerTest has failing tests
Summary: BatchCompilerTest has failing tests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.4 M1   Edit
Assignee: shankha banerjee CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2013-07-22 05:07 EDT by Dani Megert CLA
Modified: 2013-07-24 04:21 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2013-07-22 05:07:39 EDT
N20130721-2000.

http://download.eclipse.org/eclipse/downloads/drops4/N20130721-2000/testresults/html/org.eclipse.jdt.core.tests.compiler_linux.gtk.x86_6.0.html


Unexpected error output for invocation with arguments ["/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java" -extdirs "" -1.5 -g -preserveAllLocals -proceedOnError -referenceInfo -d "/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression" ]. ----------- Expected ------------ ----------\n 1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n sun.net.spi.nameservice.dns.DNSNameService dummy;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n sun.net.spi.nameservice.dns cannot be resolved to a type\n ----------\n 1 problem (1 error) ------------ but was ------------ ----------\n 1. ERROR in /opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java (at line 3)\n sun.net.spi.nameservice.dns.DNSNameService dummy;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n sun.net.spi.nameservice.dns cannot be resolved to a type\n ----------\n 1 problem (1 error)\n --------- Difference is ---------- expected:<...-----\n 1. ERROR in [---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n sun.net.spi.nameservice.dns.DNSNameService dummy;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n sun.net.spi.nameservice.dns cannot be resolved to a type\n ----------\n 1 problem (1 error)]> but was:<...-----\n 1. ERROR in [/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java (at line 3)\n sun.net.spi.nameservice.dns.DNSNameService dummy;\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n sun.net.spi.nameservice.dns cannot be resolved to a type\n ----------\n 1 problem (1 error)\n ]>

junit.framework.ComparisonFailure: Unexpected error output for invocation with arguments ["/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java" -extdirs "" -1.5 -g -preserveAllLocals -proceedOnError -referenceInfo -d "/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression" ].
----------- Expected ------------
----------\n
1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n
sun.net.spi.nameservice.dns.DNSNameService dummy;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
sun.net.spi.nameservice.dns cannot be resolved to a type\n
----------\n
1 problem (1 error)
------------ but was ------------
----------\n
1. ERROR in /opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java (at line 3)\n
sun.net.spi.nameservice.dns.DNSNameService dummy;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
sun.net.spi.nameservice.dns cannot be resolved to a type\n
----------\n
1 problem (1 error)\n

--------- Difference is ----------
expected:<...-----\n
1. ERROR in [---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n
sun.net.spi.nameservice.dns.DNSNameService dummy;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
sun.net.spi.nameservice.dns cannot be resolved to a type\n
----------\n
1 problem (1 error)]> but was:<...-----\n
1. ERROR in [/opt/users/hudsonbuild/workspace/ep4-unit-lin64/tmp/comptest/run.1374471774974/regression/X.java (at line 3)\n
sun.net.spi.nameservice.dns.DNSNameService dummy;\n
^^^^^^^^^^^^^^^^^^^^^^^^^^^\n
sun.net.spi.nameservice.dns cannot be resolved to a type\n
----------\n
1 problem (1 error)\n
]>
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:238)
at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:214)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.runTest(BatchCompilerTest.java:635)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.runNegativeTest(BatchCompilerTest.java:463)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test024(BatchCompilerTest.java:2550)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:55)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:655)
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:109)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:80)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:372)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:226)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Jay Arthanareeswaran CLA 2013-07-22 05:19:02 EDT
Manoj, please take a look at. Looks like some issue with the test as the output directory placeholder is not translated properly.
Comment 3 Dani Megert CLA 2013-07-23 04:36:38 EDT
They fail on all platforms. Looks like a real regression.
Comment 4 Jay Arthanareeswaran CLA 2013-07-23 04:52:02 EDT
The most recent failures are in the newly added tests via commit:

http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=e91db9a52c48c5d336d3a25efb83227251d6139c
Comment 5 Jay Arthanareeswaran CLA 2013-07-23 05:12:24 EDT
Looks like the fix for bug 408038 had to be adjusted after fix for bug 405176 got released. My bad, I should have run the tests once again before releasing the fix for former. 

Shankha, can you please add new lines to the error messages and see if the failures go away. Also take a look at the failures reported in comment #0.
Comment 6 Jay Arthanareeswaran CLA 2013-07-23 06:01:40 EDT
Tests have been fixed via commit:

http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=9e7e7a1f996b0899d3bb9d9b10b64136b9faaa31

Thanks Shankha and Manoj for investigating.
Comment 7 Manoj N Palat CLA 2013-07-23 23:19:46 EDT
(In reply to comment #6)
> Tests have been fixed via commit:

Integration build clean with tests passing. Will wait for the nightly results for further verification
Comment 8 Dani Megert CLA 2013-07-24 04:21:07 EDT
Verified in I20130723-0800 and N20130723-2000.