@@ -5818,11 +5818,8 @@ def test_fs_mmap(self):
5818
5818
self .do_run_in_out_file_test ('fs/test_mmap.c' )
5819
5819
5820
5820
@no_wasmfs ('wasmfs will (?) need a non-JS mechanism to ignore permissions during startup' )
5821
- @parameterized ({
5822
- '' : [],
5823
- 'minimal_runtime' : ['-sMINIMAL_RUNTIME=1' ],
5824
- })
5825
- def test_fs_no_main (self , * args ):
5821
+ @also_with_minimal_runtime
5822
+ def test_fs_no_main (self ):
5826
5823
# library_fs.js uses hooks to enable ignoring of permisions up until ATMAINs are run. This
5827
5824
# test verified that they work correctly, even in programs without a main function.
5828
5825
create_file ('pre.js' , '''
@@ -5836,7 +5833,7 @@ def test_fs_no_main(self, *args):
5836
5833
''' )
5837
5834
self .set_setting ('EXPORTED_FUNCTIONS' , '_foo' )
5838
5835
self .set_setting ('FORCE_FILESYSTEM' )
5839
- self .emcc_args += ['--pre-js' , 'pre.js' ] + list ( args )
5836
+ self .emcc_args += ['--pre-js' , 'pre.js' ]
5840
5837
self .do_run ('int foo() { return 42; }' , '' , force_c = True )
5841
5838
5842
5839
@also_with_noderawfs
@@ -7658,17 +7655,12 @@ def test_embind_sync_if_pthread_delayed(self):
7658
7655
### Tests for tools
7659
7656
7660
7657
@no_wasm2js ('TODO: source maps in wasm2js' )
7661
- @parameterized ({
7662
- '' : ([],),
7663
- 'minimal_runtime' : (['-sMINIMAL_RUNTIME' ],),
7664
- })
7658
+ @also_with_minimal_runtime
7665
7659
@requires_node
7666
- def test_source_map (self , args ):
7660
+ def test_source_map (self ):
7667
7661
if '-g' not in self .emcc_args :
7668
7662
self .emcc_args .append ('-g' )
7669
7663
7670
- self .emcc_args += args
7671
-
7672
7664
src = '''
7673
7665
#include <stdio.h>
7674
7666
#include <assert.h>
@@ -8419,16 +8411,12 @@ def test_maybe_wasm2js(self):
8419
8411
8420
8412
@no_asan ('no wasm2js support yet in asan' )
8421
8413
@requires_wasm2js
8422
- @parameterized ({
8423
- '' : ([],),
8424
- 'minimal_runtime' : (['-sMINIMAL_RUNTIME' ],),
8425
- })
8426
- def test_wasm2js_fallback (self , args ):
8414
+ @also_with_minimal_runtime
8415
+ def test_wasm2js_fallback (self ):
8427
8416
if self .is_wasm2js ():
8428
8417
self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
8429
8418
8430
- cmd = [EMCC , test_file ('small_hello_world.c' ), '-sWASM=2' ] + args
8431
- self .run_process (cmd )
8419
+ self .run_process ([EMCC , test_file ('small_hello_world.c' ), '-sWASM=2' ])
8432
8420
8433
8421
# First run with WebAssembly support enabled
8434
8422
# Move the Wasm2js fallback away to test it is not accidentally getting loaded.
0 commit comments