Commit 0a190b3
Fix race condition in RCPTestWorkbenchAdvisor by removing premature event processing
The previous fix added a CountDownLatch to wait for operations with DisplayAccess,
but also included a display.readAndDispatch() loop that processed ALL pending events
in postStartup(). This caused deferred operations (without DisplayAccess) to execute
before startup completed, violating the contract that such operations should be
deferred until after startup.
This change removes the display.readAndDispatch() loop while keeping the latch-based
synchronization for operations with DisplayAccess. The test expects:
- Operations WITH DisplayAccess → run during startup
- Operations WITHOUT DisplayAccess → deferred until after startup
- Direct asyncExec from UI thread → deferred until after startup
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 1b8a9f3 commit 0a190b3
File tree
1 file changed
+0
-10
lines changed- tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util
1 file changed
+0
-10
lines changedLines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | 235 | | |
246 | 236 | | |
247 | 237 | | |
| |||
0 commit comments