summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-03-07 10:13:13 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-03-20 18:41:32 -0400
commit3394a7cd27cec64a577ee0a9df887a431ccb3696 (patch)
treec235d7de5e8f1ee8a22d10b9a7e4726450d8519d /testsuite/driver/testlib.py
parent8c1a27435e990287fa928a71f632007eea23b48a (diff)
downloadhaskell-3394a7cd27cec64a577ee0a9df887a431ccb3696.tar.gz
testsuite: Display observed exit code on failure due to bad exit code
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index ed336c922a..a2e7dde414 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1402,7 +1402,7 @@ def simple_run(name, way, prog, extra_run_opts):
print('Wrong exit code for ' + name + '(' + way + ')' + '(expected', opts.exit_code, ', actual', exit_code, ')')
dump_stdout(name)
dump_stderr(name)
- return failBecause('bad exit code')
+ return failBecause('bad exit code (%d)' % exit_code)
if not (opts.ignore_stderr or stderr_ok(name, way) or opts.combined_output):
return failBecause('bad stderr')