Skip to content

Assert that the Display asyncExec test runs its runnable - #3745

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:display-exec-tests-assert-thread
Open

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:display-exec-tests-assert-thread

Conversation

@vogella

@vogella vogella commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3741, which replaced the Display.beep() runnable of the asyncExec test with a silent one and so removed the test's implicit check that the runnable runs on the UI thread. The test now runs the queued runnable with a readAndDispatch loop before disposing the display, asserts inside it that Display.getCurrent() is the display, and asserts that it ran. That restores the thread check without the alert sound and additionally catches an asyncExec that never runs its runnable, which the beep version could not.

The asyncExec test lost its implicit UI thread check when its Display.beep() runnable was replaced by a silent one. Run the queued runnable before disposing the display and assert that it ran on the display thread.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

 1 017 files  ±0   1 017 suites  ±0   1h 22m 46s ⏱️ -11s
 5 057 tests ±0   5 029 ✅ ±0     28 💤 ±0  0 ❌ ±0 
29 707 runs  ±0  27 175 ✅ ±0  2 532 💤 ±0  0 ❌ ±0 

Results for commit af1a7fb. ± Comparison against base commit 3af6685.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants