Skip to content

Commit 4cab039

Browse files
authored
Fix flaky test *.test_pthread_wait_async. (#24984)
Fix flaky test *.test_pthread_wait_async. The test does not synchronize worker_main printing, so it could occur in different order on different runs.
1 parent d9c8ae1 commit 4cab039

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

test/atomic/test_wait_async.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
volatile int32_t addr = 0;
99

1010
void run_test() {
11-
emscripten_out("worker_main");
1211
#if __EMSCRIPTEN_WASM_WORKERS__
1312
emscripten_wasm_worker_sleep(1000 * 1000000ull); // Sleep one second.
1413
#else

test/atomic/test_wait_async.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Waiting for 0 milliseconds should return 'timed-out'
55
Waiting for >0 milliseconds should return 'ok' (but successfully time out in first call to asyncWaitFinished)
66
Waiting for infinitely long should return 'ok' (and return 'ok' in second call to asyncWaitFinished)
77
main: asyncWaitShouldTimeout
8-
worker_main
98
worker: addr = 1234
109
worker: notify async waiting main thread
1110
main: asyncWaitFinished

0 commit comments

Comments
 (0)