From 40a40a9bf6dd5385dfa703e98a376222f03882aa Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 17 Jun 2016 16:41:37 +0100 Subject: support parse errors in .fail. tests --- check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check.py') 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: -- cgit v1.2.3