diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-03-07 10:13:13 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-03-20 18:41:32 -0400 |
commit | 3394a7cd27cec64a577ee0a9df887a431ccb3696 (patch) | |
tree | c235d7de5e8f1ee8a22d10b9a7e4726450d8519d /testsuite/driver/testlib.py | |
parent | 8c1a27435e990287fa928a71f632007eea23b48a (diff) | |
download | haskell-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.py | 2 |
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') |