aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-28 16:10:42 -0500
committerAlon Zakai <alonzakai@gmail.com>2013-02-28 16:10:42 -0500
commit3733f600c6c6f1982baa955bc79a597bf444eb79 (patch)
treeda545a5e4486e3aa9e777ea5b432a5d8f3a2a264 /tests
parent9c746eb4f9b6e1f093abb6db61f926a71f310a83 (diff)
fix test_exceptions
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 1d0fc07f..c0c95e4a 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2472,7 +2472,8 @@ Exception execution path of first function! 1
'''
Settings.DISABLE_EXCEPTION_CATCHING = 0
- self.emcc_args.pop() ; self.emcc_args.pop() # disable closure to work around a closure bug
+ if '-O2' in self.emcc_args:
+ self.emcc_args.pop() ; self.emcc_args.pop() # disable closure to work around a closure bug
self.do_run(src, 'Throw...Construct...Catched...Destruct...Throw...Construct...Copy...Catched...Destruct...Destruct...')
def test_white_list_exception(self):