summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-16 16:27:38 -0700
committerGitHub <noreply@github.com>2016-07-16 16:27:38 -0700
commitcd61f6a1ae959cc3ee22f4e72f0f4ba73c2abbd1 (patch)
treeeef538171ffef9c72ca9d319d93a1f56bd47cd85 /check.py
parentce8ee20462a465f00520dbe0dd2aa3e1601f4ca1 (diff)
parent07170478897c81aa973217ae8070d2d155d16b2e (diff)
downloadbinaryen-cd61f6a1ae959cc3ee22f4e72f0f4ba73c2abbd1.tar.gz
binaryen-cd61f6a1ae959cc3ee22f4e72f0f4ba73c2abbd1.tar.bz2
binaryen-cd61f6a1ae959cc3ee22f4e72f0f4ba73c2abbd1.zip
Merge pull request #644 from WebAssembly/fix-debug
Fix dce bug in non-parallel mode, which happens in debug mode
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py3
1 files changed, 3 insertions, 0 deletions
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'