diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-30 12:23:27 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-30 12:23:27 -0800 |
commit | 5cae031ff9a7551b6f244b110303e26bfa54076b (patch) | |
tree | 79f00f478f5518cdc4564952d3c88e9ebe9b9110 /tests/test_core.py | |
parent | f7566449e9c0e367b092999e1f3e5102f854bda9 (diff) |
fix exceptions whitelist check on invoke using function pointer; fixes #2081
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 18d7d74a..6c2968f6 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -1299,8 +1299,16 @@ class T(RunnerCore): # Short name, to make it more fun to use manually on the co self.do_run_from_file(src, output) - Settings.DISABLE_EXCEPTION_CATCHING = 0 - Settings.EXCEPTION_CATCHING_WHITELIST = [] + def test_exceptions_white_list_2(self): + if os.environ.get('EMCC_FAST_COMPILER') == '1': return self.skip('todo in fastcomp') + + Settings.DISABLE_EXCEPTION_CATCHING = 2 + Settings.EXCEPTION_CATCHING_WHITELIST = ["_main"] + Settings.INLINING_LIMIT = 50 # otherwise it is inlined and not identified + + test_path = path_from_root('tests', 'core', 'test_exceptions_white_list_2') + src, output = (test_path + s for s in ('.c', '.out')) + self.do_run_from_file(src, output) def test_exceptions_uncaught(self): if self.emcc_args is None: return self.skip('no libcxx inclusion without emcc') |