emscripten-core / emscripten-core/emscripten
test_pthread_cond_signal_1_1 is flaky
Open
flaky test
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
`test_pthread_cond_signal_1_1` has very small timeout during which main thread wakes side threads
and expect them to update flag. This causes that when tests are run on node.js this particular test fails
not because tested function (`pthread_cond_signal`) actually fails but due to the fact that woken up
side threads haven't get CPU time and haven't managed to update flag on time.
Observed behavior:
- When this test is run alone it never fails
- When whole test suite is run sequentially this test fails once per 100 runs
- When whole test suite is run in parallel this tests fails once per 10 runs
Contributor guide
Assessment
This issue has not been assessed yet.