Skip to content
Success

Changes

Summary

  1. Fix race condition in WorkbenchPluginTest #1891 (details)
Commit af7cdc332aeb4133ffe429fbab2700923f715c8b by Heiko Klare
Fix race condition in WorkbenchPluginTest #1891

Test test case testGetImageRegistryFromAdditionalDisplay() in
org.eclipse.ui.tests.api.WorkbenchPluginTest randomly fails because of a
race condition. A display is initialized in another thread, but the
initialization logic may access the value before it has actually been
set by the other thread. This is fixed by reordering the instructions.

Fixes https://github.com/eclipse-platform/eclipse.platform.ui/issues/1891
The file was modified tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/WorkbenchPluginTest.java (diff)