summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai (kripken) <alonzakai@gmail.com>2017-04-18 12:58:57 -0700
committerAlon Zakai (kripken) <alonzakai@gmail.com>2017-04-18 16:59:02 -0700
commita9b1d78072bd1875d926cfb0ae51a6eb4dc49b4e (patch)
tree4c7b5ccbe6f57ff4ec5aa9e89bc298f38dc5408f
parent12e8c5c20bf9f7d1e5fd85a56c722adf786b5bab (diff)
downloadbinaryen-a9b1d78072bd1875d926cfb0ae51a6eb4dc49b4e.tar.gz
binaryen-a9b1d78072bd1875d926cfb0ae51a6eb4dc49b4e.tar.bz2
binaryen-a9b1d78072bd1875d926cfb0ae51a6eb4dc49b4e.zip
test interpreter on trap mode = js, as we try values that can trap. we recently changed the default trap mode in emscripten, which makes this change necessary
-rwxr-xr-xcheck.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/check.py b/check.py
index 57eedc423..2171a330d 100755
--- a/check.py
+++ b/check.py
@@ -576,6 +576,7 @@ if EMCC:
for method in ['interpret-asm2wasm', 'interpret-s-expr', 'interpret-binary']:
command = [EMCC, '-o', 'a.wasm.js', '-s', 'BINARYEN=1', os.path.join(options.binaryen_test, c)] + opts + extra
command += ['-s', 'BINARYEN_METHOD="' + method + '"']
+ command += ['-s', 'BINARYEN_TRAP_MODE="js"']
print '....' + ' '.join(command)
subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if post: