From 8597c85a6066bb2f814f5ab821d307d415493c58 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 16 Jul 2016 15:51:20 -0700 Subject: fix dce bug in non-parallel mode, which happens in debug mode, and add debug testing --- check.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'check.py') diff --git a/check.py b/check.py index 5d9a72ac0..d3f0ea4c6 100755 --- a/check.py +++ b/check.py @@ -272,6 +272,9 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))): with open('split.wast', 'w') as o: o.write(module) cmd = [os.path.join('bin', 'wasm-opt')] + opts + ['split.wast', '--print'] actual += run_command(cmd) + # also check debug mode output is valid + debugged = run_command(cmd + ['--debug'], stderr=subprocess.PIPE) + fail_if_not_contained(actual, debugged) fail_if_not_identical(actual, open(os.path.join('test', 'passes', passname + '.txt')).read()) print '[ checking asm2wasm testcases... ]\n' -- cgit v1.2.3