Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8625,18 +8625,21 @@ def test_fpic_static(self):

@node_pthreads
def test_pthreads_create(self):
if not self.is_wasm_backend():
self.skipTest('only supported on wasm backend')

def test():
self.do_run_in_out_file_test('tests', 'core', 'pthread', 'create')

test()

# with a pool, we can synchronously depend on workers being available
self.set_setting('PTHREAD_POOL_SIZE', '2')
self.emcc_args += ['-DPOOL']
test()

@node_pthreads
def test_pthreads_create_lto(self):
self.emcc_args += ['-flto']
self.do_run_in_out_file_test('tests', 'core', 'pthread', 'create')

@no_fastcomp('new wasm backend atomics')
def test_emscripten_atomics_stub(self):
self.do_run_in_out_file_test('tests', 'core', 'pthread', 'emscripten_atomics')
Expand Down