|
23 | 23 | import common |
24 | 24 | from common import BrowserCore, RunnerCore, path_from_root, has_browser, EMTEST_BROWSER, Reporting |
25 | 25 | from common import create_file, parameterized, ensure_dir, disabled, test_file, WEBIDL_BINDER |
26 | | -from common import read_file, also_with_minimal_runtime, EMRUN, no_wasm64, no_2gb, no_4gb |
27 | | -from common import requires_wasm2js, also_with_wasm2js, parameterize, find_browser_test_file |
| 26 | +from common import read_file, EMRUN, no_wasm64, no_2gb, no_4gb |
| 27 | +from common import requires_wasm2js, parameterize, find_browser_test_file |
| 28 | +from common import also_with_minimal_runtime, also_with_wasm2js, also_with_asan |
28 | 29 | from tools import shared |
29 | 30 | from tools import ports |
30 | 31 | from tools.shared import EMCC, WINDOWS, FILE_PACKAGER, PIPE, DEBUG |
@@ -4206,17 +4207,9 @@ def test_async_compile(self, opts, returncode): |
4206 | 4207 | self.btest_exit('test_async_compile.c', assert_returncode=1, args=common_args) |
4207 | 4208 |
|
4208 | 4209 | # Test that implementing Module.instantiateWasm() callback works. |
4209 | | - @parameterized({ |
4210 | | - '': ([],), |
4211 | | - 'asan': (['-fsanitize=address'],) |
4212 | | - }) |
4213 | | - def test_manual_wasm_instantiate(self, args): |
4214 | | - if args: |
4215 | | - if self.is_wasm64(): |
4216 | | - self.skipTest('TODO: ASAN in memory64') |
4217 | | - if self.is_2gb() or self.is_4gb(): |
4218 | | - self.skipTest('asan doesnt support GLOBAL_BASE') |
4219 | | - self.compile_btest('test_manual_wasm_instantiate.c', ['-o', 'manual_wasm_instantiate.js'] + args) |
| 4210 | + @also_with_asan |
| 4211 | + def test_manual_wasm_instantiate(self): |
| 4212 | + self.compile_btest('test_manual_wasm_instantiate.c', ['-o', 'manual_wasm_instantiate.js']) |
4220 | 4213 | shutil.copy(test_file('test_manual_wasm_instantiate.html'), '.') |
4221 | 4214 | self.run_browser('test_manual_wasm_instantiate.html', '/report_result?1') |
4222 | 4215 |
|
|
0 commit comments