-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8894,7 +8894,8 @@ def test_wasm_sourcemap(self): | |
'--dwarfdump-output', | ||
path_from_root('tests', 'other', 'wasm_sourcemap', 'foo.wasm.dump'), | ||
'-o', 'a.out.wasm.map', | ||
path_from_root('tests', 'other', 'wasm_sourcemap', 'foo.wasm')] | ||
path_from_root('tests', 'other', 'wasm_sourcemap', 'foo.wasm'), | ||
'--basepath=' + os.getcwd()] | ||
run_process(wasm_map_cmd) | ||
output = open('a.out.wasm.map').read() | ||
# has "sources" entry with file (includes also `--prefix =wasm-src:///` replacement) | ||
|
@@ -8909,12 +8910,35 @@ def test_wasm_sourcemap_dead(self): | |
'--dwarfdump-output', | ||
path_from_root('tests', 'other', 'wasm_sourcemap_dead', 't.wasm.dump'), | ||
'-o', 'a.out.wasm.map', | ||
path_from_root('tests', 'other', 'wasm_sourcemap_dead', 't.wasm')] | ||
path_from_root('tests', 'other', 'wasm_sourcemap_dead', 't.wasm'), | ||
'--basepath=' + os.getcwd()] | ||
run_process(wasm_map_cmd, stdout=PIPE, stderr=PIPE) | ||
output = open('a.out.wasm.map').read() | ||
# has only two entries | ||
self.assertRegexpMatches(output, r'"mappings":\s*"[A-Za-z0-9+/]+,[A-Za-z0-9+/]+"') | ||
|
||
@no_fastcomp() | ||
def test_wasm_sourcemap_relative_paths(self): | ||
This comment has been minimized.
Sorry, something went wrong. |
||
def test(infile, source_map_added_dir=''): | ||
expected_source_map_path = os.path.join(source_map_added_dir, 'a.cpp') | ||
print(infile, expected_source_map_path) | ||
shutil.copyfile(path_from_root('tests', 'hello_123.c'), infile) | ||
infiles = [ | ||
infile, | ||
os.path.abspath(infile), | ||
'./' + infile | ||
] | ||
for curr in infiles: | ||
print(' ', curr) | ||
run_process([PYTHON, EMCC, curr, '-g4']) | ||
with open('a.out.wasm.map', 'r') as f: | ||
self.assertIn('"%s"' % expected_source_map_path, str(f.read())) | ||
|
||
test('a.cpp') | ||
|
||
os.mkdir('inner') | ||
test(os.path.join('inner', 'a.cpp'), 'inner') | ||
|
||
def test_wasm_producers_section(self): | ||
# no producers section by default | ||
run_process([PYTHON, EMCC, path_from_root('tests', 'hello_world.c')]) | ||
|
@@ -9690,17 +9714,17 @@ def test_lsan_leaks(self, ext): | |
@parameterized({ | ||
'c': ['c', [ | ||
r'in malloc.*a\.out\.wasm\+0x', | ||
r'(?im)in f (/|[a-z]:).*/test_lsan_leaks\.c:6:21$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.c:10:16$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.c:12:3$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.c:13:3$', | ||
r'(?im)in f (|[/a-z\.]:).*/test_lsan_leaks\.c:6:21$', | ||
This comment has been minimized.
Sorry, something went wrong.
sbc100
Collaborator
|
||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.c:10:16$', | ||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.c:12:3$', | ||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.c:13:3$', | ||
]], | ||
'cpp': ['cpp', [ | ||
r'in operator new\[\]\(unsigned long\).*a\.out\.wasm\+0x', | ||
r'(?im)in f\(\) (/|[a-z]:).*/test_lsan_leaks\.cpp:4:21$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.cpp:8:16$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.cpp:10:3$', | ||
r'(?im)in main (/|[a-z]:).*/test_lsan_leaks\.cpp:11:3$', | ||
r'(?im)in f\(\) (|[/a-z\.]:).*/test_lsan_leaks\.cpp:4:21$', | ||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.cpp:8:16$', | ||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.cpp:10:3$', | ||
r'(?im)in main (|[/a-z\.]:).*/test_lsan_leaks\.cpp:11:3$', | ||
]], | ||
}) | ||
@no_fastcomp('lsan not supported on fastcomp') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This test is failing with we try to roll into emscripten-release:
https://chromium-review.googlesource.com/c/emscripten-releases/+/1943614
https://logs.chromium.org/logs/emscripten-releases/buildbucket/cr-buildbucket.appspot.com/8895424225079553280/+/steps/Emscripten_testsuite__upstream__other_/0/stdout