Skip to content

Commit b0bd228

Browse files
committed
update other.test_EXPORTED_RUNTIME_METHODS
1 parent ab0b505 commit b0bd228

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_other.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4896,14 +4896,16 @@ def test_EXPORTED_RUNTIME_METHODS(self):
48964896
def test(opts, has, not_has):
48974897
print(opts, has, not_has)
48984898
self.clear()
4899-
Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c')] + opts).communicate()
4899+
# check without assertions, as with assertions we add stubs for the things we remove (which
4900+
# print nice error messages)
4901+
Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-s', 'ASSERTIONS=0'] + opts).communicate()
49004902
self.assertContained('hello, world!', run_js('a.out.js'))
49014903
src = open('a.out.js').read()
49024904
self.assertContained(has, src)
49034905
self.assertNotContained(not_has, src)
49044906

49054907
test([], 'Module["intArray', 'Module["waka')
4906-
test(['-s', 'EXPORTED_RUNTIME_METHODS=[]'], 'Module["print', 'Module["intArray')
4908+
test(['-s', 'EXPORTED_RUNTIME_METHODS=[]'], '', 'Module["intArray')
49074909
test(['-s', 'EXPORTED_RUNTIME_METHODS=["intArrayToString"]'], 'Module["intArray', 'Module["waka')
49084910
test(['-s', 'EXPORTED_RUNTIME_METHODS=[]', '-s', 'EXTRA_EXPORTED_RUNTIME_METHODS=["intArrayToString"]'], 'Module["intArray', 'Module["waka')
49094911

0 commit comments

Comments
 (0)