Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368822

Summary: remove osgi tests which require org.eclipse.core.runtime.compatibility.auth
Product: [Eclipse Project] Platform Reporter: Kim Moir <kim.moir>
Component: RuntimeAssignee: John Arthorne <john.arthorne>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: john.arthorne, tjwatson
Version: 4.2   
Target Milestone: 4.2 M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 355430    
Attachments:
Description Flags
patch none

Description Kim Moir CLA 2012-01-17 08:41:12 EST
I've been running test builds where the 4.2 build is primary and we run all our tests against it.  For the osgi tests, there's a failure.  It seems to be the tests are looking for org.eclipse.core.runtime.compatibility.auth.  John has said that this bundle shouldn't exist in 4.2 stream builds. See 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=355430#c9

Failed to invoke suite():junit.framework.AssertionFailedError: 0.0.1.org.eclipse.core.runtime.compatibility.auth

org.eclipse.test.EclipseTestRunner$TestFailedException: Failed to invoke suite():junit.framework.AssertionFailedError: 0.0.1.org.eclipse.core.runtime.compatibility.auth
at org.eclipse.test.EclipseTestRunner.runFailed(EclipseTestRunner.java:430)
at org.eclipse.test.EclipseTestRunner.getTest(EclipseTestRunner.java:417)
at org.eclipse.test.EclipseTestRunner.<init>(EclipseTestRunner.java:348)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:257)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:352)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:624)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:579)
at org.eclipse.equinox.launcher.Main.run(Main.java:1433)
at org.eclipse.equinox.launcher.Main.main(Main.java:1409)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Thomas Watson CLA 2012-01-17 09:08:28 EST
I am guessing this is because the constant org.eclipse.core.tests.session.ConfigurationSessionTestSuite.MINIMAL_BUNDLE_SET lists org.eclipse.core.runtime.compatibility.auth but I am not sure.
Comment 2 Thomas Watson CLA 2012-01-17 09:23:54 EST
When I remove org.eclipse.core.runtime.compatibility.auth from the list MINIMAL_BUNDLE_SET I can run the osgi tests without the org.eclipse.core.runtime.compatibility.auth bundle.

I suspect org.eclipse.core.tests.internal.runtime.PlatformURLSessionTest test should also fail because of the same issue.
Comment 3 Thomas Watson CLA 2012-01-17 09:24:36 EST
Created attachment 209621 [details]
patch
Comment 4 John Arthorne CLA 2012-01-17 14:38:11 EST
Thanks Tom, I'll verify and fix up the other one.
Comment 5 John Arthorne CLA 2012-01-17 15:07:21 EST
I released Tom's fix after verifying all tests pass with runtime.compatibility.auth bundle not present. Thanks again Tom.