Skip to content

Commit 005f0f4

Browse files
authored
Add a test for EM_JS with MAIN_MODULE (#9024)
Depends on WebAssembly/binaryen#2233 Bug report: #8993
1 parent 15b01e8 commit 005f0f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_core.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,14 @@ def test_em_asm_parameter_pack(self):
17901790
self.emcc_args += ['-std=c++11']
17911791
self.do_run_in_out_file_test('tests', 'core', 'test_em_asm_parameter_pack')
17921792

1793-
def test_em_js(self):
1793+
@parameterized({
1794+
'normal': ([],),
1795+
'linked': (['-s', 'MAIN_MODULE'],),
1796+
})
1797+
def test_em_js(self, args):
1798+
if 'MAIN_MODULE' in args and self.get_setting('ALLOW_MEMORY_GROWTH') and not self.is_wasm():
1799+
self.skipTest('main module not compatible with asm.js memory growth')
1800+
self.emcc_args += args
17941801
self.do_run_in_out_file_test('tests', 'core', 'test_em_js')
17951802
self.do_run_in_out_file_test('tests', 'core', 'test_em_js', force_c=True)
17961803

0 commit comments

Comments
 (0)