summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-06-17 16:41:37 +0100
committerAlon Zakai <alonzakai@gmail.com>2016-06-17 16:41:37 +0100
commit40a40a9bf6dd5385dfa703e98a376222f03882aa (patch)
treeef460027757709a774815de3a24c1d3aa5c800d8
parent873a1d5db152530f089a009aa4ce8005c3bd9e07 (diff)
downloadbinaryen-40a40a9bf6dd5385dfa703e98a376222f03882aa.tar.gz
binaryen-40a40a9bf6dd5385dfa703e98a376222f03882aa.tar.bz2
binaryen-40a40a9bf6dd5385dfa703e98a376222f03882aa.zip
support parse errors in .fail. tests
-rwxr-xr-xcheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check.py b/check.py
index 2da0d30e6..43591ee73 100755
--- a/check.py
+++ b/check.py
@@ -412,7 +412,7 @@ for t in spec_tests:
try:
actual = run_spec_test(wast)
except Exception, e:
- if 'wasm-validator error' in str(e) and '.fail.' in t:
+ if ('wasm-validator error' in str(e) or 'parse exception' in str(e)) and '.fail.' in t:
print '<< test failed as expected >>'
continue # don't try all the binary format stuff TODO
else: