Bug 323558

Summary: Tests test0307a and test0307e under BatchCompilerTest failing
Product: [Eclipse Project] JDT Reporter: Jay Arthanareeswaran <jarthana>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.7   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description Jay Arthanareeswaran CLA 2010-08-25 01:26:38 EDT
The tests are failing with the following errors respectively:

Unexpected error output for invocation with arguments ["/tmp/comptest/run.1282699548719/regression/X.java" -1.5 -g -preserveAllLocals -proceedOnError -referenceInfo ]. ----------- Expected ------------ no classpath defined, using default directory instead\n ----------\n 1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 1)\n import p.Y.I;\n ^^^\n The import p.Y cannot be resolved\n ----------\n 2. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n I i;\n ^\n I cannot be resolved to a type\n ----------\n 2 problems (2 errors) ------------ but was ------------ no classpath defined, using default directory instead\n ----------\n 1. ERROR in /tmp/comptest/run.1282699548719/regression/X.java (at line 1)\n import p.Y.I;\n ^\n The import p cannot be resolved\n ----------\n 2. ERROR in /tmp/comptest/run.1282699548719/regression/X.java (at line 3)\n I i;\n ^\n I cannot be resolved to a type\n ----------\n 2 problems (2 errors) --------- Difference is ---------- expected:<...-----\n 1. ERROR in [---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 1)\n import p.Y.I;\n ^^^\n The import p.Y cannot be resolved\n ----------\n 2. ERROR in ---OUTPUT_DIR_PLACEHOLDER---]/X.java (at line 3)\...> but was:<...-----\n 1. ERROR in [/tmp/comptest/run.1282699548719/regression/X.java (at line 1)\n import p.Y.I;\n ^\n The import p cannot be resolved\n ----------\n 2. ERROR in /tmp/comptest/run.1282699548719/regression]/X.java (at line 3)\...>

junit.framework.ComparisonFailure: Unexpected error output for invocation with arguments ["/tmp/comptest/run.1282699548719/regression/X.java" -1.5 -g -preserveAllLocals -proceedOnError -referenceInfo ].
----------- Expected ------------
no classpath defined, using default directory instead\n
----------\n
1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 1)\n
import p.Y.I;\n
^^^\n
The import p.Y cannot be resolved\n
----------\n
2. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 3)\n
I i;\n
^\n
I cannot be resolved to a type\n
----------\n
2 problems (2 errors)
------------ but was ------------
no classpath defined, using default directory instead\n
----------\n
1. ERROR in /tmp/comptest/run.1282699548719/regression/X.java (at line 1)\n
import p.Y.I;\n
^\n
The import p cannot be resolved\n
----------\n
2. ERROR in /tmp/comptest/run.1282699548719/regression/X.java (at line 3)\n
I i;\n
^\n
I cannot be resolved to a type\n
----------\n
2 problems (2 errors)
--------- Difference is ----------
expected:<...-----\n
1. ERROR in [---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 1)\n
import p.Y.I;\n
^^^\n
The import p.Y cannot be resolved\n
----------\n
2. ERROR in ---OUTPUT_DIR_PLACEHOLDER---]/X.java (at line 3)\...> but was:<...-----\n
1. ERROR in [/tmp/comptest/run.1282699548719/regression/X.java (at line 1)\n
import p.Y.I;\n
^\n
The import p cannot be resolved\n
----------\n
2. ERROR in /tmp/comptest/run.1282699548719/regression]/X.java (at line 3)\...>
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.compiler.regression.BatchCompilerTest.runTest(BatchCompilerTest.java:596)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.runNegativeTest(BatchCompilerTest.java:424)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test0307a(BatchCompilerTest.java:11481)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:55)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:376)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:209)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
at org.eclipse.core.launcher.Main.main(Main.java:34)

----

Unexpected problems [out: ][err: File /tmp/comptest/run.1282699548719/regression/P/Y.java is missing ]

junit.framework.AssertionFailedError: Unexpected problems [out: ][err: File /tmp/comptest/run.1282699548719/regression/P/Y.java is missing
]
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.runTest(BatchCompilerTest.java:583)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.runConformTest(BatchCompilerTest.java:396)
at org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test0307e(BatchCompilerTest.java:11713)
at org.eclipse.jdt.core.tests.util.CompilerTestSetup.run(CompilerTestSetup.java:55)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:376)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:209)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Srikanth Sankaran CLA 2010-08-25 06:48:48 EDT
These tests were to be run only under Windows as they test
the behavior of the batch compiler when the underlying OS
has a case insensitive file system.

I'll post a patch shortly that fixes the tests,
Comment 2 Srikanth Sankaran CLA 2010-08-25 07:08:33 EDT
Created attachment 177407 [details]
Proposed patch
Comment 3 Srikanth Sankaran CLA 2010-08-25 07:45:46 EDT
Released in HEAD for 3.7 M2.
Comment 4 Srikanth Sankaran CLA 2010-08-25 07:46:45 EDT
Resolved.
Comment 5 Olivier Thomann CLA 2010-09-14 10:17:36 EDT
Verified for 3.7M2 using I20100914-0100