aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-25 14:32:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-25 14:32:02 -0700
commit4af9136347122abd9d7184c74fcb536a6cd8e719 (patch)
treecfa731925a2ede51f43faf6e6454151fd8f6c6ed
parentad285f60d0be807e7e49e7c86ca8f9bedec4714f (diff)
test fixes
-rwxr-xr-xtests/runner.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/runner.py b/tests/runner.py
index e3b62110..3da7a685 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2475,17 +2475,14 @@ Exception execution path of first function! 1
def test_exceptions(self):
if Settings.ASM_JS: return self.skip('no exceptions support in asm')
if Settings.QUANTUM_SIZE == 1: return self.skip("we don't support libcxx in q1")
+ if self.emcc_args is None: return self.skip('need emcc to add in libcxx properly')
Settings.EXCEPTION_DEBUG = 1
self.banned_js_engines = [NODE_JS] # node issue 1669, exception causes stdout not to be flushed
Settings.DISABLE_EXCEPTION_CATCHING = 0
- if self.emcc_args is None:
- if Building.LLVM_OPTS: return self.skip('optimizing bitcode before emcc can confuse libcxx inclusion')
- self.emcc_args = [] # libc++ auto-inclusion is only done if we use emcc
- else:
- if '-O2' in self.emcc_args:
- self.emcc_args += ['--closure', '1'] # Use closure here for some additional coverage
+ if '-O2' in self.emcc_args:
+ self.emcc_args += ['--closure', '1'] # Use closure here for some additional coverage
src = '''
#include <stdio.h>
@@ -6247,6 +6244,8 @@ def process(filename):
self.do_run(src, "some string constant")
def test_std_cout_new(self):
+ if self.emcc_args is None: return self.skip('requires emcc')
+
src = '''
#include <iostream>