4949 also_with_asan ,
5050 also_with_fetch_streaming ,
5151 also_with_minimal_runtime ,
52+ also_with_pthreads ,
5253 also_with_wasm2js ,
5354 also_with_wasmfs ,
5455 disabled ,
@@ -181,21 +182,6 @@ def is_jspi(args):
181182 return '-sJSPI' in args
182183
183184
184- def also_with_threads (f ):
185- assert callable (f )
186-
187- @wraps (f )
188- def decorated (self , threads , * args , ** kwargs ):
189- if threads :
190- self .cflags += ['-pthread' ]
191- f (self , * args , ** kwargs )
192-
193- parameterize (decorated , {'' : (False ,),
194- 'pthreads' : (True ,)})
195-
196- return decorated
197-
198-
199185def also_with_proxy_to_pthread (f ):
200186 assert callable (f )
201187
@@ -3676,7 +3662,7 @@ def test_pthread_64bit_atomics(self):
36763662 self .btest_exit ('pthread/test_pthread_64bit_atomics.c' , cflags = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
36773663
36783664 # Test 64-bit C++11 atomics.
3679- @also_with_threads
3665+ @also_with_pthreads
36803666 @parameterized ({
36813667 '' : ([],),
36823668 'O3' : (['-O3' ],),
@@ -3932,7 +3918,7 @@ def test_pthread_sbrk(self, args):
39323918
39333919 # Test that -sABORTING_MALLOC=0 works in both pthreads and non-pthreads
39343920 # builds. (sbrk fails gracefully)
3935- @also_with_threads
3921+ @also_with_pthreads
39363922 @parameterized ({
39373923 '' : ([],),
39383924 'O2' : (['-O2' ],),
@@ -4157,11 +4143,11 @@ def test_wasm_locate_file(self):
41574143 shutil .move ('test.wasm' , Path ('cdn/test.wasm' ))
41584144 self .run_browser ('test.html' , '/report_result?0' )
41594145
4160- @also_with_threads
4146+ @also_with_pthreads
41614147 def test_utf8_textdecoder (self ):
41624148 self .btest_exit ('benchmark/benchmark_utf8.c' , 0 , cflags = ['--embed-file' , test_file ('utf8_corpus.txt' ) + '@/utf8_corpus.txt' ])
41634149
4164- @also_with_threads
4150+ @also_with_pthreads
41654151 def test_utf16_textdecoder (self ):
41664152 self .btest_exit ('benchmark/benchmark_utf16.cpp' , 0 , cflags = ['--embed-file' , test_file ('utf16_corpus.txt' ) + '@/utf16_corpus.txt' , '-sEXPORTED_RUNTIME_METHODS=UTF16ToString,stringToUTF16,lengthBytesUTF16' ])
41674153
@@ -5560,7 +5546,7 @@ def test_error_reporting(self):
55605546 create_file ('post.js' , 'throw "foo";' )
55615547 self .btest ('hello_world.c' , cflags = ['--post-js=post.js' ], expected = 'exception:foo' )
55625548
5563- @also_with_threads
5549+ @also_with_pthreads
55645550 @also_with_wasm2js
55655551 @parameterized ({
55665552 '' : ([],),
@@ -5582,7 +5568,7 @@ def test_webpack(self, args):
55825568 shutil .copy ('src/hello.wasm' , 'dist/' )
55835569 self .run_browser ('dist/index.html' , '/report_result?exit:0' )
55845570
5585- @also_with_threads
5571+ @also_with_pthreads
55865572 @requires_dev_dependency ('vite' )
55875573 @parameterized ({
55885574 '' : ([],),
@@ -5594,7 +5580,7 @@ def test_vite(self, args):
55945580 self .run_process (shared .get_npm_cmd ('vite' ) + ['build' ])
55955581 self .run_browser ('dist/index.html' , '/report_result?exit:0' )
55965582
5597- @also_with_threads
5583+ @also_with_pthreads
55985584 @requires_dev_dependency ('rollup' )
55995585 def test_rollup (self ):
56005586 copytree (test_file ('rollup' ), '.' )
0 commit comments