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

Bug 435367

Summary: ProgressContantsTest.testCommandProperty failed
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Andrey Loskutov <loskutov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.4   
Target Milestone: 4.7 M4   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/85356
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=a57c0fa2ef8dfbd2616d0f2a0fc0824f62b4b58e
https://bugs.eclipse.org/bugs/show_bug.cgi?id=508898
Whiteboard:

Description Dani Megert CLA 2014-05-21 05:16:42 EDT
I20140520-2000.

http://download.eclipse.org/eclipse/downloads/drops4/I20140520-2000/testresults/html/org.eclipse.ui.tests_win32.win32.x86_7.0.html

N/A

junit.framework.AssertionFailedError
at org.eclipse.ui.tests.progress.ProgressContantsTest.testCommandProperty(ProgressContantsTest.java:76)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:657)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:310)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Andrey Loskutov CLA 2016-11-20 11:44:34 EST
Seem still to fail sporadically, see https://hudson.eclipse.org/platform/job/eclipse.platform.ui-Gerrit/11222/testReport/org.eclipse.ui.tests.progress/ProgressContantsTest/testCommandProperty/:
junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:55)
	at junit.framework.Assert.assertTrue(Assert.java:22)
	at junit.framework.Assert.assertNotNull(Assert.java:256)
	at junit.framework.Assert.assertNotNull(Assert.java:248)
	at junit.framework.TestCase.assertNotNull(TestCase.java:417)
	at org.eclipse.ui.tests.progress.ProgressContantsTest.testCommandProperty(ProgressContantsTest.java:71)

Probably the job was not yet scheduled, so join() had no effect and so the job info was not found.

The fix is hopefully trivial, will be in a second.
Comment 2 Eclipse Genie CLA 2016-11-20 11:46:06 EST
New Gerrit change created: https://git.eclipse.org/r/85356