diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-31 22:29:43 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:31 -0700 |
commit | 2a29c25394abf9941f4a768a810c417f506e1678 (patch) | |
tree | 0dc413fd38c0c28ff339eb64d72f6c1a8f46aa19 /tests/test_core.py | |
parent | f55d0566d4bcbe83edbeedbc1dca30817d7da9ce (diff) |
do not eliminate supposedly stub functions in side modules, as they may be imported from the parent
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 |