[commit: ghc] wip/mark-fragile-windows-tests: testsuite: Display observed exit code on failure due to bad exit code (671338c)

git at git.haskell.org git at git.haskell.org
Fri Mar 8 01:45:41 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/mark-fragile-windows-tests
Link       : http://ghc.haskell.org/trac/ghc/changeset/671338c5bac7b6169e6a990c09fcf14dcc752dec/ghc

>---------------------------------------------------------------

commit 671338c5bac7b6169e6a990c09fcf14dcc752dec
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Thu Mar 7 10:13:13 2019 -0500

    testsuite: Display observed exit code on failure due to bad exit code


>---------------------------------------------------------------

671338c5bac7b6169e6a990c09fcf14dcc752dec
 testsuite/driver/testlib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index edd43fb..6a588a8 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -1378,7 +1378,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 (' + exit_code + ')')
 
     if not (opts.ignore_stderr or stderr_ok(name, way) or opts.combined_output):
         return failBecause('bad stderr')



More information about the ghc-commits mailing list