aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-27 17:52:02 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-27 17:52:02 -0800
commitc1c1cb75334c109db21694adc6a85777c433b671 (patch)
tree3aca33d9163f06234470a2117e8f3eb7a05ae585 /tests
parenteb7c2b26f500609683e412c828a9d9a1c5c61374 (diff)
fix some safeHeap errors with the new exceptions code; fixes #2068
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index aa3fd8c4..d0de0031 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1278,10 +1278,12 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co
if self.emcc_args is None: return self.skip('need emcc to add in libcxx properly')
Settings.DISABLE_EXCEPTION_CATCHING = 0
- test_path = path_from_root('tests', 'core', 'test_exceptions_2')
- src, output = (test_path + s for s in ('.in', '.out'))
-
- self.do_run_from_file(src, output)
+ for safe in [0,1]:
+ print safe
+ Settings.SAFE_HEAP = safe
+ test_path = path_from_root('tests', 'core', 'test_exceptions_2')
+ src, output = (test_path + s for s in ('.in', '.out'))
+ self.do_run_from_file(src, output)
def test_exceptions_white_list(self):
if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp')