[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-releng-dev] Problems with org.eclipse.releng.tests testVersionCompare
|
Hello,
I first sent this email to Kim Moir, but she's out for a few days. I'm
hoping someone on this list might have some answers to the following:
I'm having problems with testVersionCompare in org.eclipse.releng.tests
BuildTests.java since 3.3M5.
The error I'm seeing in the test suite is:
output file is null
junit.framework.AssertionFailedError: output file is null
at
org.eclipse.releng.tests.BuildTests.verifyCompareResults(BuildTests.java:771)
at
org.eclipse.releng.tests.BuildTests.testVersionCompare(BuildTests.java:904)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:332)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:202)
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.callMethod(EclipseAppContainer.java:533)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:497)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:436)
at org.eclipse.equinox.launcher.Main.run(Main.java:1162)
at org.eclipse.equinox.launcher.Main.main(Main.java:1137)
at org.eclipse.core.launcher.Main.main(Main.java:24)
One thing is that I'm unable to debug this test in the debugger, because
when I right-click on the test, I don't get the option to debug it as a
Junit plug-in test, only a Junit test, and that fails with this error
message:
org.eclipse.core.runtime.AssertionFailedException: assertion failed: The
application has not been initialized.
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at
org.eclipse.core.internal.runtime.InternalPlatform.assertInitialized(InternalPlatform.java:138)
at
org.eclipse.core.internal.runtime.InternalPlatform.getInstallLocation(InternalPlatform.java:345)
at
org.eclipse.core.runtime.Platform.getInstallLocation(Platform.java:1319)
at org.eclipse.releng.tests.BuildTests.setUp(BuildTests.java:407)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Not being able to debug, I am just desk checking the code, and am
finding that the test looks for a properties files called
compare.properties. This files comes with the release, but contains
this text:
###############################################################################
# Copyright (c) 2006 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
compare.new=@new@
compare.old=@old@
compare.output=@output@
#compare.options=d:\\temp\\compare.options
These @xxx@ tokens look like the tokens that are used in the test.xml
file for the cvs team tests, but I've been unable to find any directions
as to how to set them.
Any help you can provide with these issues would be appreciated.
Thanks for reading,
- Corey
--
Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR
503-578-3507
cjashfor@xxxxxxxxxx