diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-07-16 16:27:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-16 16:27:38 -0700 |
commit | cd61f6a1ae959cc3ee22f4e72f0f4ba73c2abbd1 (patch) | |
tree | eef538171ffef9c72ca9d319d93a1f56bd47cd85 /check.py | |
parent | ce8ee20462a465f00520dbe0dd2aa3e1601f4ca1 (diff) | |
parent | 07170478897c81aa973217ae8070d2d155d16b2e (diff) | |
download | binaryen-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-x | check.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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' |