emscripten-core / emscripten-core/emscripten

test_pthread_cond_signal_1_1 is flaky

Open
#13,283 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.