[commit: ghc] master: Testsuite: redirect stderr to /dev/null when running GS on bad.ps (8757e2d)

git at git.haskell.org git at git.haskell.org
Tue Mar 31 15:36:02 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8757e2db03d74ad8b0f9a0d32ddacd6ad616a795/ghc

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

commit 8757e2db03d74ad8b0f9a0d32ddacd6ad616a795
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Tue Mar 31 14:12:52 2015 +0200

    Testsuite: redirect stderr to /dev/null when running GS on bad.ps
    
    This is a followup to a3d0a7a0ba3a1ee458a9883011247561dfe22f4a.
    
    Reviewed by: Rufflewind
    
    Differential Revision: https://phabricator.haskell.org/D780


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

8757e2db03d74ad8b0f9a0d32ddacd6ad616a795
 testsuite/driver/testlib.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index b0d552e..e178f2a 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2060,7 +2060,8 @@ if config.have_profiling:
   if config.gs != '':
     resultGood = runCmdExitCode(genGSCmd(config.confdir + '/good.ps'));
     if resultGood == 0:
-        resultBad = runCmdExitCode(genGSCmd(config.confdir + '/bad.ps') + ' >/dev/null')
+        resultBad = runCmdExitCode(genGSCmd(config.confdir + '/bad.ps') +
+                                   ' >/dev/null 2>&1')
         if resultBad != 0:
             print("GhostScript available for hp2ps tests")
             gs_working = 1;



More information about the ghc-commits mailing list