@@ -4896,14 +4896,16 @@ def test_EXPORTED_RUNTIME_METHODS(self):
4896
4896
def test (opts , has , not_has ):
4897
4897
print (opts , has , not_has )
4898
4898
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 ()
4900
4902
self .assertContained ('hello, world!' , run_js ('a.out.js' ))
4901
4903
src = open ('a.out.js' ).read ()
4902
4904
self .assertContained (has , src )
4903
4905
self .assertNotContained (not_has , src )
4904
4906
4905
4907
test ([], 'Module["intArray' , 'Module["waka' )
4906
- test (['-s' , 'EXPORTED_RUNTIME_METHODS=[]' ], 'Module["print ' , 'Module["intArray' )
4908
+ test (['-s' , 'EXPORTED_RUNTIME_METHODS=[]' ], '' , 'Module["intArray' )
4907
4909
test (['-s' , 'EXPORTED_RUNTIME_METHODS=["intArrayToString"]' ], 'Module["intArray' , 'Module["waka' )
4908
4910
test (['-s' , 'EXPORTED_RUNTIME_METHODS=[]' , '-s' , 'EXTRA_EXPORTED_RUNTIME_METHODS=["intArrayToString"]' ], 'Module["intArray' , 'Module["waka' )
4909
4911
0 commit comments