From d05efcd2c264f820dce6082e310573bfe4823bc2 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 14 Jul 2025 11:01:37 -0700 Subject: [PATCH] Improve test_standalone_imports - Run the resulting binary - Remove redundant -O0 Followup to #24680 --- test/test_other.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_other.py b/test/test_other.py index 39b0ed4bf6086..973c130fbbf45 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -15185,9 +15185,8 @@ def test_standalone_settings(self): def test_standalone_imports(self): # Ensure standalone binary will not have __throw_exception_with_stack_trace # debug helper dependency, caused by exception-related code. - src_path = test_file('core/test_exceptions.cpp') - self.run_process([EMXX, '-O0', '-fwasm-exceptions', '-sSTANDALONE_WASM', src_path]) - imports = self.parse_wasm('a.out.wasm')[0] + self.do_runf('core/test_exceptions.cpp', cflags=['-fwasm-exceptions', '-sSTANDALONE_WASM']) + imports = self.parse_wasm('test_exceptions.wasm')[0] for name in imports: self.assertTrue(name.startswith('wasi_'), 'Unexpected import %s' % name)