Skip to content

Commit f21de99

Browse files
committed
Fix flaky wasm2js1.test_pthread_c11_threads test
By printing before reporting the result.
1 parent dd6e48d commit f21de99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/pthread/test_pthread_c11_threads.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,9 @@ int main(int argc, char* argv[]) {
9595
assert(thrd_create(&t6, thread_main, NULL) == thrd_success);
9696
assert(thrd_detach(t6) == thrd_success);
9797

98-
98+
printf("done!\n");
9999
#ifdef REPORT_RESULT
100100
REPORT_RESULT(0);
101101
#endif
102-
printf("done!\n");
103102
return 0;
104103
}

0 commit comments

Comments
 (0)