summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-04 10:18:32 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-03-04 10:38:24 -0800
commitb9443f47b084b1931d459490ecfd465dfcef68d3 (patch)
treec8caa5effef5487efac804599d7c9971bf15a2f8 /check.py
parent00e3875bb7feda59faf347b6887fcdb143d7e50b (diff)
downloadbinaryen-b9443f47b084b1931d459490ecfd465dfcef68d3.tar.gz
binaryen-b9443f47b084b1931d459490ecfd465dfcef68d3.tar.bz2
binaryen-b9443f47b084b1931d459490ecfd465dfcef68d3.zip
improve check error logging for wasm methods
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/check.py b/check.py
index 09326c6b1..e4dfbb0b4 100755
--- a/check.py
+++ b/check.py
@@ -598,11 +598,11 @@ if has_emcc:
proc = subprocess.Popen([has_node, 'a.wasm.js'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = proc.communicate()
if success:
- assert proc.returncode == 0
- assert 'hello, world!' in out
+ assert proc.returncode == 0, err
+ assert 'hello, world!' in out, out
else:
- assert proc.returncode != 0
- assert 'hello, world!' not in out
+ assert proc.returncode != 0, err
+ assert 'hello, world!' not in out, out
print '\n[ checking wasm.js testcases... ]\n'