@@ -1908,7 +1908,7 @@ def test_em_asm_direct(self):
19081908
19091909 @needs_dylink
19101910 def test_em_asm_side_module (self ):
1911- self .build (test_file ('core/test_em_asm_side.c' ), js_outfile = False , emcc_args = ['-sSIDE_MODULE' ], output_basename = 'side' )
1911+ self .build (test_file ('core/test_em_asm_side.c' ), output_suffix = '.wasm' , emcc_args = ['-sSIDE_MODULE' ], output_basename = 'side' )
19121912 self .do_core_test ('test_em_asm_main.c' , emcc_args = ['-sMAIN_MODULE=2' , 'side.wasm' ])
19131913
19141914 @parameterized ({
@@ -3928,13 +3928,13 @@ def dylink_testf(self, main, side=None, expected=None, force_c=False, main_emcc_
39283928 # side settings
39293929 self .clear_setting ('MAIN_MODULE' )
39303930 self .set_setting ('SIDE_MODULE' )
3931- side_suffix = 'wasm' if self .is_wasm () else 'js'
3931+ side_suffix = '. wasm' if self .is_wasm () else '. js'
39323932 if isinstance (side , list ):
3933- out_file = 'liblib. ' + side_suffix
3933+ out_file = 'liblib' + side_suffix
39343934 # side is just a library
39353935 self .run_process ([EMCC ] + side + self .get_emcc_args () + ['-o' , out_file ])
39363936 else :
3937- out_file = self .build (side , js_outfile = ( side_suffix == 'js' ) )
3937+ out_file = self .build (side , output_suffix = side_suffix )
39383938 shutil .move (out_file , os .path .join (so_dir , so_name ))
39393939
39403940 # main settings
@@ -4814,8 +4814,7 @@ def test_dylink_exceptions_try_catch_6(self):
48144814 # side settings
48154815 self .clear_setting ('MAIN_MODULE' )
48164816 self .set_setting ('SIDE_MODULE' )
4817- out_file = self .build ('liblib.cpp' , js_outfile = False )
4818- shutil .move (out_file , "liblib.so" )
4817+ self .build ('liblib.cpp' , output_suffix = '.so' )
48194818
48204819 # main settings
48214820 self .set_setting ('MAIN_MODULE' , 1 )
0 commit comments