Bug 323558 - Tests test0307a and test0307e under BatchCompilerTest failing
Summary: Tests test0307a and test0307e under BatchCompilerTest failing
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 01:26 EDT by Jay Arthanareeswaran CLA
Modified: 2010-09-14 10:17 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (3.06 KB, patch)
2010-08-25 07:08 EDT, Srikanth Sankaran CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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