diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-22 17:21:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-23 16:03:06 -0700 |
commit | 2a0f90ac5964f73e5e5b8bee35a8962ba9cca4a2 (patch) | |
tree | ea3d0d2c57f10b1e2555ff7279d6fa2f048c8c24 /tests/test_core.py | |
parent | 46aac5343e53225f1e9bc74c584ecb9b6afd74a1 (diff) |
asm coerce in atomicrmw; fixes #1637
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 4c17a942..0b6528e7 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -8937,6 +8937,8 @@ def process(filename): def test_cases(self): if Building.LLVM_OPTS: return self.skip("Our code is not exactly 'normal' llvm assembly") + emcc_args = self.emcc_args + try: os.environ['EMCC_LEAVE_INPUTS_RAW'] = '1' Settings.CHECK_OVERFLOWS = 0 @@ -8950,6 +8952,10 @@ def process(filename): if '_noasm' in shortname and Settings.ASM_JS: print self.skip('case "%s" not relevant for asm.js' % shortname) continue + if os.path.exists(shortname + '.emcc'): + self.emcc_args = emcc_args + if not self.emcc_args: continue + self.emcc_args += json.loads(open(shortname + '.emcc').read()) print >> sys.stderr, "Testing case '%s'..." % shortname output_file = path_from_root('tests', 'cases', shortname + '.txt') if Settings.QUANTUM_SIZE == 1: @@ -8970,6 +8976,7 @@ def process(filename): finally: del os.environ['EMCC_LEAVE_INPUTS_RAW'] + self.emcc_args = emcc_args def test_fuzz(self): if Settings.USE_TYPED_ARRAYS != 2: return self.skip('needs ta2') |