Skip to content

Commit 39ba937

Browse files
authored
Add test for pthread + sync instantiation. NFC (#24938)
We happen to have some coverage of this configuration by accident elsewhere but this makes it explicit.
1 parent c2c7ac7 commit 39ba937

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_core.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9163,11 +9163,15 @@ def test_fpic_static(self):
91639163
# Test is disabled on standalone because of flakes, see
91649164
# https://github.com/emscripten-core/emscripten/issues/18405
91659165
# @also_with_standalone_wasm(impure=True)
9166+
@parameterized({
9167+
'': ([],),
9168+
'sync_instantiation': (['-sWASM_ASYNC_COMPILATION=0'],),
9169+
})
91669170
@node_pthreads
9167-
def test_pthread_create(self):
9171+
def test_pthread_create(self, args):
91689172
self.set_setting('ENVIRONMENT', 'node')
91699173
self.set_setting('STRICT')
9170-
self.do_core_test('pthread/create.c')
9174+
self.do_core_test('pthread/create.c', cflags=args)
91719175

91729176
@node_pthreads
91739177
@parameterized({

0 commit comments

Comments
 (0)