@@ -3648,7 +3648,7 @@ def test_pthread_main_thread_blocking_join(self):
36483648 })
36493649 def test_pthread_gcc_atomic_fetch_and_op (self , args ):
36503650 self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' ]
3651- self .btest_exit ('pthread/test_pthread_gcc_atomic_fetch_and_op.cpp ' , args = args + ['-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3651+ self .btest_exit ('pthread/test_pthread_gcc_atomic_fetch_and_op.c ' , args = args + ['-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
36523652
36533653 # 64 bit version of the above test.
36543654 @also_with_wasm2js
@@ -3658,15 +3658,15 @@ def test_pthread_gcc_64bit_atomic_fetch_and_op(self):
36583658 if self .is_wasm2js ():
36593659 self .skipTest ('https://github.com/WebAssembly/binaryen/issues/4358' )
36603660 self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' ]
3661- self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_fetch_and_op.cpp ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3661+ self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_fetch_and_op.c ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
36623662
36633663 # Test the old GCC atomic __sync_op_and_fetch builtin operations.
36643664 @also_with_wasm2js
36653665 @no_2gb ('https://github.com/emscripten-core/emscripten/issues/21318' )
36663666 @no_4gb ('https://github.com/emscripten-core/emscripten/issues/21318' )
36673667 def test_pthread_gcc_atomic_op_and_fetch (self ):
36683668 self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' ]
3669- self .btest_exit ('pthread/test_pthread_gcc_atomic_op_and_fetch.cpp ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3669+ self .btest_exit ('pthread/test_pthread_gcc_atomic_op_and_fetch.c ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
36703670
36713671 # 64 bit version of the above test.
36723672 @also_with_wasm2js
@@ -3676,18 +3676,18 @@ def test_pthread_gcc_64bit_atomic_op_and_fetch(self):
36763676 if self .is_wasm2js ():
36773677 self .skipTest ('https://github.com/WebAssembly/binaryen/issues/4358' )
36783678 self .emcc_args += ['-Wno-sync-fetch-and-nand-semantics-changed' , '--profiling-funcs' ]
3679- self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_op_and_fetch.cpp ' , args = ['-pthread' , '-O2' , '-sPTHREAD_POOL_SIZE=8' ])
3679+ self .btest_exit ('pthread/test_pthread_gcc_64bit_atomic_op_and_fetch.c ' , args = ['-pthread' , '-O2' , '-sPTHREAD_POOL_SIZE=8' ])
36803680
36813681 # Tests the rest of the remaining GCC atomics after the two above tests.
36823682 @also_with_wasm2js
36833683 def test_pthread_gcc_atomics (self ):
3684- self .btest_exit ('pthread/test_pthread_gcc_atomics.cpp ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
3684+ self .btest_exit ('pthread/test_pthread_gcc_atomics.c ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ])
36853685
36863686 # Test the __sync_lock_test_and_set and __sync_lock_release primitives.
36873687 @also_with_wasm2js
36883688 def test_pthread_gcc_spinlock (self ):
36893689 for arg in ([], ['-DUSE_EMSCRIPTEN_INTRINSICS' ]):
3690- self .btest_exit ('pthread/test_pthread_gcc_spinlock.cpp ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + arg )
3690+ self .btest_exit ('pthread/test_pthread_gcc_spinlock.c ' , args = ['-O3' , '-pthread' , '-sPTHREAD_POOL_SIZE=8' ] + arg )
36913691
36923692 @parameterized ({
36933693 '' : ([],),
0 commit comments