From 8f3c2c0c711384782c6652d2bc96f73cb372a0de Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 13 Feb 2024 22:43:24 -0800 Subject: [PATCH] Fix asan.test_main_thread_em_asm_pthread 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 #21292 and this wasn't caught immediately because we don't run the `asan` suite during CI. --- test/test_core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_core.py b/test/test_core.py index 275facd91e64c..e4aab1e160b3c 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -1897,6 +1897,8 @@ def test_em_asm_2(self): 'pthread': (['-pthread', '-sPROXY_TO_PTHREAD', '-sEXIT_RUNTIME'],), }) def test_main_thread_em_asm(self, args): + if args: + self.setup_node_pthreads() src = read_file(test_file('core/test_em_asm_2.cpp')) create_file('test.cpp', src.replace('EM_ASM', 'MAIN_THREAD_EM_ASM'))