Skip to content

Commit e357360

Browse files
authored
Improve test_standalone_imports (#24696)
- Run the resulting binary - Remove redundant -O0 Followup to #24680
1 parent 9f0dbf5 commit e357360

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_other.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15185,9 +15185,8 @@ def test_standalone_settings(self):
1518515185
def test_standalone_imports(self):
1518615186
# Ensure standalone binary will not have __throw_exception_with_stack_trace
1518715187
# debug helper dependency, caused by exception-related code.
15188-
src_path = test_file('core/test_exceptions.cpp')
15189-
self.run_process([EMXX, '-O0', '-fwasm-exceptions', '-sSTANDALONE_WASM', src_path])
15190-
imports = self.parse_wasm('a.out.wasm')[0]
15188+
self.do_runf('core/test_exceptions.cpp', cflags=['-fwasm-exceptions', '-sSTANDALONE_WASM'])
15189+
imports = self.parse_wasm('test_exceptions.wasm')[0]
1519115190
for name in imports:
1519215191
self.assertTrue(name.startswith('wasi_'), 'Unexpected import %s' % name)
1519315192

0 commit comments

Comments
 (0)