diff options
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index d7e60345..6bb5ccb6 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -6199,6 +6199,8 @@ ok ''', force_c=True, post_build=self.dlfcn_post_build) def test_dlfcn_mallocs(self): + if not Settings.ASM_JS: return self.skip('needs asm') + if not self.can_dlfcn(): return Settings.TOTAL_MEMORY = 64*1024*1024 # will be exhausted without functional malloc/free @@ -6222,15 +6224,7 @@ ok self.prep_dlfcn_main() src = open(path_from_root('tests', 'dlmalloc_proxy.c')).read() Settings.EXPORTED_FUNCTIONS = ['_main', '_malloc', '_free'] - self.do_run(src, '''go -main. -main 201 -void 0 -void 1 -int 0 54 -int 1 9000 -ok -''', force_c=True, post_build=self.dlfcn_post_build) + self.do_run(src, '''*294,153*''', force_c=True, post_build=self.dlfcn_post_build) def test_rand(self): return self.skip('rand() is now random') # FIXME |