Skip to content

Commit 8bb1d1b

Browse files
authored
Fix test_pthread_cancel after last two commits raced. NFC (#19975)
See #19524 and #19963
1 parent 9ad683b commit 8bb1d1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/pthread/test_pthread_cancel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
_Atomic long res = 43;
1616
static void cleanup_handler(void *arg)
1717
{
18-
emscripten_outf("Called clean-up handler with arg %p", arg);
1918
long a = (long)arg;
19+
emscripten_outf("Called clean-up handler with arg %ld", a);
2020
res -= a;
2121
}
2222

test/pthread/test_pthread_cancel.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Canceling thread..
22
Thread started!
33
Called clean-up handler with arg 42
4-
After canceling, shared variable = 1.
4+
After canceling, shared variable = 1

0 commit comments

Comments
 (0)