Skip to content

Commit 216c10b

Browse files
sbc100mrolig5267319
authored andcommitted
Fix asan.test_main_thread_em_asm_pthread (emscripten-core#21339)
Without this change this tests fails to compile with `em++: error: -pthread + ALLOW_MEMORY_GROWTH may run non-wasm code slowly`. This test was recently added in emscripten-core#21292 and this wasn't caught immediately because we don't run the `asan` suite during CI.
1 parent 7a92b73 commit 216c10b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,6 +1897,8 @@ def test_em_asm_2(self):
18971897
'pthread': (['-pthread', '-sPROXY_TO_PTHREAD', '-sEXIT_RUNTIME'],),
18981898
})
18991899
def test_main_thread_em_asm(self, args):
1900+
if args:
1901+
self.setup_node_pthreads()
19001902
src = read_file(test_file('core/test_em_asm_2.cpp'))
19011903
create_file('test.cpp', src.replace('EM_ASM', 'MAIN_THREAD_EM_ASM'))
19021904

0 commit comments

Comments
 (0)