@@ -8902,8 +8902,7 @@ def test_wasm_sourcemap(self):
89028902 '--dwarfdump-output' ,
89038903 path_from_root ('tests' , 'other' , 'wasm_sourcemap' , 'foo.wasm.dump' ),
89048904 '-o' , 'a.out.wasm.map' ,
8905- path_from_root ('tests' , 'other' , 'wasm_sourcemap' , 'foo.wasm' ),
8906- '--basepath=' + os .getcwd ()]
8905+ path_from_root ('tests' , 'other' , 'wasm_sourcemap' , 'foo.wasm' )]
89078906 run_process (wasm_map_cmd )
89088907 output = open ('a.out.wasm.map' ).read ()
89098908 # has "sources" entry with file (includes also `--prefix =wasm-src:///` replacement)
@@ -8918,35 +8917,12 @@ def test_wasm_sourcemap_dead(self):
89188917 '--dwarfdump-output' ,
89198918 path_from_root ('tests' , 'other' , 'wasm_sourcemap_dead' , 't.wasm.dump' ),
89208919 '-o' , 'a.out.wasm.map' ,
8921- path_from_root ('tests' , 'other' , 'wasm_sourcemap_dead' , 't.wasm' ),
8922- '--basepath=' + os .getcwd ()]
8920+ path_from_root ('tests' , 'other' , 'wasm_sourcemap_dead' , 't.wasm' )]
89238921 run_process (wasm_map_cmd , stdout = PIPE , stderr = PIPE )
89248922 output = open ('a.out.wasm.map' ).read ()
89258923 # has only two entries
89268924 self .assertRegexpMatches (output , r'"mappings":\s*"[A-Za-z0-9+/]+,[A-Za-z0-9+/]+"' )
89278925
8928- @no_fastcomp ()
8929- def test_wasm_sourcemap_relative_paths (self ):
8930- def test (infile , source_map_added_dir = '' ):
8931- expected_source_map_path = os .path .join (source_map_added_dir , 'a.cpp' )
8932- print (infile , expected_source_map_path )
8933- shutil .copyfile (path_from_root ('tests' , 'hello_123.c' ), infile )
8934- infiles = [
8935- infile ,
8936- os .path .abspath (infile ),
8937- './' + infile
8938- ]
8939- for curr in infiles :
8940- print (' ' , curr )
8941- run_process ([PYTHON , EMCC , curr , '-g4' ])
8942- with open ('a.out.wasm.map' , 'r' ) as f :
8943- self .assertIn ('"%s"' % expected_source_map_path , str (f .read ()))
8944-
8945- test ('a.cpp' )
8946-
8947- os .mkdir ('inner' )
8948- test (os .path .join ('inner' , 'a.cpp' ), 'inner' )
8949-
89508926 def test_wasm_producers_section (self ):
89518927 # no producers section by default
89528928 run_process ([PYTHON , EMCC , path_from_root ('tests' , 'hello_world.c' )])
@@ -9723,17 +9699,17 @@ def test_lsan_leaks(self, ext):
97239699 @parameterized ({
97249700 'c' : ['c' , [
97259701 r'in malloc.*a\.out\.wasm\+0x' ,
9726- r'(?im)in f (|[/ a-z\. ]:).*/test_lsan_leaks\.c:6:21$' ,
9727- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.c:10:16$' ,
9728- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.c:12:3$' ,
9729- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.c:13:3$' ,
9702+ r'(?im)in f (/|[ a-z]:).*/test_lsan_leaks\.c:6:21$' ,
9703+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.c:10:16$' ,
9704+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.c:12:3$' ,
9705+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.c:13:3$' ,
97309706 ]],
97319707 'cpp' : ['cpp' , [
97329708 r'in operator new\[\]\(unsigned long\).*a\.out\.wasm\+0x' ,
9733- r'(?im)in f\(\) (|[/ a-z\. ]:).*/test_lsan_leaks\.cpp:4:21$' ,
9734- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.cpp:8:16$' ,
9735- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.cpp:10:3$' ,
9736- r'(?im)in main (|[/ a-z\. ]:).*/test_lsan_leaks\.cpp:11:3$' ,
9709+ r'(?im)in f\(\) (/|[ a-z]:).*/test_lsan_leaks\.cpp:4:21$' ,
9710+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.cpp:8:16$' ,
9711+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.cpp:10:3$' ,
9712+ r'(?im)in main (/|[ a-z]:).*/test_lsan_leaks\.cpp:11:3$' ,
97379713 ]],
97389714 })
97399715 @no_fastcomp ('lsan not supported on fastcomp' )
0 commit comments