Community
Participate
Working Groups
16 platform UI tests in org.eclipse.e4.ui.tests fail only on Mac. 1) testBug326175_False Error expected:<PartImplContext> but was:<null> java.lang.AssertionError: expected:<PartImplContext> but was:<null> at org.eclipse.e4.ui.tests.workbench.PartRenderingEngineTests.testBug326175(PartRenderingEngineTests.java:2170) 2) testBug324839 Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39) 3) testBug372226 Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39) 4) testCreateWindow Error expected:<Shell {MyWindow}> but was:<null> java.lang.AssertionError: expected:<Shell {MyWindow}> but was:<null> at org.eclipse.e4.ui.tests.workbench.MWindowTest.testCreateWindow(MWindowTest.java:112) 5) testContextChildren Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.MWindowTest.testContextChildren(MWindowTest.java:208) 6) testHandlerInActivePartOnly Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePartOnly(HandlerActivationTest.java:170) 7) testHandlerInWindowOnly Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInWindowOnly(HandlerActivationTest.java:156) 8) testHandlerSwitchToInactivePartInOtherPerspectiveWithPartHandlers Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39) 9) testHandlerInActivePerspectiveAndWindow Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePerspectiveAndWindow(HandlerActivationTest.java:210) 10) testHandlerInActivePerspectiveOnly Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePerspectiveOnly(HandlerActivationTest.java:163) 11) testHandlerSwitchToInactivePartInOtherPerspectiveWithPerspectiveHandlers Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39) 12) testHandlerInActivePartAndPerspectiveAndWindow Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePartAndPerspectiveAndWindow(HandlerActivationTest.java:220) 13) testHandlerSwitchToInactivePart Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39) 14) testHandlerInActivePartAndWindow Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePartAndWindow(HandlerActivationTest.java:201) 15) testHandlerInActivePartAndPerspective Error N/A java.lang.AssertionError at org.eclipse.e4.ui.tests.workbench.HandlerActivationTest.testHandlerInActivePartAndPerspective(HandlerActivationTest.java:192) 16) testHandlerSwitchToInactivePerspective Error Application does not have an active window java.lang.IllegalStateException: Application does not have an active window at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.getActiveWindowService(ApplicationPartServiceImpl.java:39)
All these tests pass locally on Mac.
*** Bug 546584 has been marked as a duplicate of this bug. ***
I have been struggling with focus on the Mac test servers before, and gave up by disabling these test on Mac, see Bug 297510. I remember seeing more comments about focus issues in on Mac in the SWT test. When running the E4 test suite on Windows OS, I see that some windows are only closed when the test suite finishes. That is, some windows seem to hang until the tests are finished. I did see something similar with the SWT test cases. I think that could be related. It is however very difficult (for me) to find out which test cases did not clean up the windows correctly.
New Gerrit change created: https://git.eclipse.org/r/156605
Gerrit change https://git.eclipse.org/r/156605 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5a90b5dcddec243e02ea7e0b7d0c3100d9a20db9
(In reply to Eclipse Genie from comment #5) > Gerrit change https://git.eclipse.org/r/156605 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/ > ?id=5a90b5dcddec243e02ea7e0b7d0c3100d9a20db9 This commit disables these 16 tests on Mac.
New Gerrit change created: https://git.eclipse.org/r/156706
Gerrit change https://git.eclipse.org/r/156706 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=80454531524a8bd9ba149690cb7c09ac84f97b2e
(In reply to Eclipse Genie from comment #8) > Gerrit change https://git.eclipse.org/r/156706 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/ > ?id=80454531524a8bd9ba149690cb7c09ac84f97b2e this commit skips these 16 tests on Mac using org.junit.Assume
The issues with respect to HandlerActivationTest might be solved by the patch for Bug 566172