Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in multithread test #122

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

jonahgraham
Copy link
Member

The long sleep at the end of each thread is to make sure that while the test code is waiting for an event the "other" thread doesn't finish. 3 seconds is not long enough for this.

This is similar to why we need dsf.gdb.tests.timeout.multiplier for other tests. Especially on the build machines the tests can run much slower causing the sleep to be insufficient.

Increasing this to 30 seconds doesn't make the test suites take any longer, when they are all passing.

Fixes #119

The long sleep at the end of each thread is to make sure that
while the test code is waiting for an event the "other" thread
doesn't finish. 3 seconds is not long enough for this.

This is similar to why we need dsf.gdb.tests.timeout.multiplier
for other tests. Especially on the build machines the tests
can run much slower causing the sleep to be insufficient.

Increasing this to 30 seconds doesn't make the test suites
take any longer, when they are all passing.

Fixes eclipse-cdt#119
@github-actions
Copy link

Test Results

     645 files       645 suites   48m 41s ⏱️
11 454 tests 11 321 ✔️ 133 💤 0
11 417 runs  11 284 ✔️ 133 💤 0

Results for commit 952514a.

@jonahgraham jonahgraham merged commit 10e95a1 into eclipse-cdt:main Oct 28, 2022
@jonahgraham jonahgraham mentioned this pull request Oct 28, 2022
15 tasks
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.

GDBMultiNonStopRunControlTest.testSuspendProcessTwoThreadsRunning[gdbserver] is unstable
1 participant