@@ -5597,24 +5597,14 @@ def test_utf8_textdecoder(self):
55975597 self .do_runf ('benchmark/benchmark_utf8.c' , 'OK.' )
55985598
55995599 # Test that invalid character in UTF8 does not cause decoding to crash.
5600+ @also_with_minimal_runtime
56005601 @parameterized ({
5601- '' : [[]] ,
5602- 'textdecoder' : [[ '-sTEXTDECODER' ]] ,
5602+ '' : ([],) ,
5603+ 'textdecoder' : ([ '-sTEXTDECODER' ],) ,
56035604 })
56045605 def test_utf8_invalid (self , args ):
56055606 self .do_runf ('test_utf8_invalid.c' , 'OK.' , emcc_args = args )
56065607
5607- # Test that invalid character in UTF8 does not cause decoding to crash.
5608- @no_asan ('TODO: ASan support in minimal runtime' )
5609- @parameterized ({
5610- '' : [[]],
5611- 'textdecoder' : [['-sTEXTDECODER' ]],
5612- })
5613- def test_minimal_runtime_utf8_invalid (self , args ):
5614- self .set_setting ('MINIMAL_RUNTIME' )
5615- self .emcc_args += ['--pre-js' , test_file ('minimal_runtime_exit_handling.js' )]
5616- self .do_runf ('test_utf8_invalid.c' , 'OK.' , emcc_args = args )
5617-
56185608 def test_utf16_textdecoder (self ):
56195609 self .emcc_args += ['--embed-file' , test_file ('utf16_corpus.txt' ) + '@/utf16_corpus.txt' ]
56205610 self .do_runf ('benchmark/benchmark_utf16.cpp' , 'OK.' )
@@ -6931,34 +6921,29 @@ def test_EXPORTED_RUNTIME_METHODS(self):
69316921 self .set_setting ('EXPORTED_RUNTIME_METHODS' , ['dynCall' , 'addFunction' , 'lengthBytesUTF8' , 'getTempRet0' , 'setTempRet0' ])
69326922 self .do_core_test ('EXPORTED_RUNTIME_METHODS.c' )
69336923
6934- @parameterized ({
6935- '' : [],
6936- 'minimal_runtime' : ['-sMINIMAL_RUNTIME=1' ]
6937- })
6938- def test_dyncall_specific (self , * args ):
6924+ @also_with_minimal_runtime
6925+ def test_dyncall_specific (self ):
69396926 if self .get_setting ('MEMORY64' ):
69406927 self .skipTest ('not compatible with MEMORY64' )
69416928 if self .get_setting ('WASM_BIGINT' ) != 0 and not self .is_wasm2js ():
69426929 # define DYNCALLS because this test does test calling them directly, and
69436930 # in WASM_BIGINT mode we do not enable them by default (since we can do
69446931 # more without them - we don't need to legalize)
6945- args = list ( args ) + ['-sDYNCALLS' , '-DWASM_BIGINT' ]
6932+ self . emcc_args += ['-sDYNCALLS' , '-DWASM_BIGINT' ]
69466933 cases = [
69476934 ('DIRECT' , []),
69486935 ('DYNAMIC_SIG' , ['-sDYNCALLS' ]),
69496936 ]
6950- if '-sMINIMAL_RUNTIME=1' in args :
6951- self .emcc_args += ['--pre-js' , test_file ('minimal_runtime_exit_handling.js' )]
6952- else :
6937+ if self .get_setting ('MINIMAL_RUNTIME' ) == 0 :
69536938 cases += [
69546939 ('EXPORTED' , []),
69556940 ('EXPORTED_DYNAMIC_SIG' , ['-sDYNCALLS' , '-sEXPORTED_RUNTIME_METHODS=dynCall' ]),
69566941 ('FROM_OUTSIDE' , ['-sEXPORTED_RUNTIME_METHODS=dynCall_iiji' ])
69576942 ]
69586943
69596944 for which , extra_args in cases :
6960- print (str (args ) + ' ' + which )
6961- self .do_core_test ('test_dyncall_specific.c' , emcc_args = ['-D' + which ] + list ( args ) + extra_args )
6945+ print (str (extra_args ) + ' ' + which )
6946+ self .do_core_test ('test_dyncall_specific.c' , emcc_args = ['-D' + which ] + extra_args )
69626947
69636948 @parameterized ({
69646949 '' : ([],),
@@ -8602,6 +8587,7 @@ def test_postrun_exit_runtime(self):
86028587 self .do_runf ('hello_world.c' , 'post run' )
86038588
86048589 # Tests that building with -sDECLARE_ASM_MODULE_EXPORTS=0 works
8590+ @also_with_minimal_runtime
86058591 def test_no_declare_asm_module_exports (self ):
86068592 self .set_setting ('DECLARE_ASM_MODULE_EXPORTS' , 0 )
86078593 self .set_setting ('WASM_ASYNC_COMPILATION' , 0 )
@@ -8619,17 +8605,6 @@ def test_no_declare_asm_module_exports(self):
86198605 else :
86208606 print (occurances )
86218607
8622- # Tests that building with -sDECLARE_ASM_MODULE_EXPORTS=0 works
8623- @no_wasmfs ('https://github.com/emscripten-core/emscripten/issues/16816' )
8624- @no_asan ('TODO: ASan support in minimal runtime' )
8625- def test_minimal_runtime_no_declare_asm_module_exports (self ):
8626- self .set_setting ('DECLARE_ASM_MODULE_EXPORTS' , 0 )
8627- self .set_setting ('WASM_ASYNC_COMPILATION' , 0 )
8628- self .maybe_closure ()
8629- self .set_setting ('MINIMAL_RUNTIME' )
8630- self .emcc_args += ['--pre-js' , test_file ('minimal_runtime_exit_handling.js' )]
8631- self .do_runf ('declare_asm_module_exports.c' , 'jsFunction: 1' )
8632-
86338608 # Tests that -sMINIMAL_RUNTIME works well in different build modes
86348609 @no_wasmfs ('https://github.com/emscripten-core/emscripten/issues/16816' )
86358610 @parameterized ({
@@ -9359,20 +9334,12 @@ def test_Module_dynamicLibraries(self, args):
93599334 force_c = True )
93609335
93619336 # Tests the emscripten_get_exported_function() API.
9337+ @also_with_minimal_runtime
93629338 def test_get_exported_function (self ):
93639339 self .set_setting ('ALLOW_TABLE_GROWTH' )
93649340 self .emcc_args += ['-lexports.js' ]
93659341 self .do_core_test ('test_get_exported_function.cpp' )
93669342
9367- # Tests the emscripten_get_exported_function() API.
9368- @no_asan ('TODO: ASan support in minimal runtime' )
9369- def test_minimal_runtime_get_exported_function (self ):
9370- self .set_setting ('ALLOW_TABLE_GROWTH' )
9371- self .set_setting ('MINIMAL_RUNTIME' )
9372- self .emcc_args += ['--pre-js' , test_file ('minimal_runtime_exit_handling.js' )]
9373- self .emcc_args += ['-lexports.js' ]
9374- self .do_core_test ('test_get_exported_function.cpp' )
9375-
93769343 # Marked as impure since the WASI reactor modules (modules without main)
93779344 # are not yet suppored by the wasm engines we test against.
93789345 @also_with_standalone_wasm (impure = True )
0 commit comments