[commit: ghc] master: Ignore output from derefnull and divbyzero on Darwin (8cab9bd)

git at git.haskell.org git at git.haskell.org
Sun Oct 2 19:17:30 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8cab9bd5eeb9cdb1afa6be7682c861c8efee475a/ghc

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

commit 8cab9bd5eeb9cdb1afa6be7682c861c8efee475a
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sun Oct 2 12:01:21 2016 -0400

    Ignore output from derefnull and divbyzero on Darwin
    
    The output contains the pid and executable path of the bash process
    which spawned the failing process. It doesn't seem worth the effort to
    cleanse this output; just ignore it.


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

8cab9bd5eeb9cdb1afa6be7682c861c8efee475a
 testsuite/tests/rts/all.T | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T
index 9692846..fc37f8d 100644
--- a/testsuite/tests/rts/all.T
+++ b/testsuite/tests/rts/all.T
@@ -25,8 +25,10 @@ test('derefnull',
       # the right exit code we're OK.
       when(opsys('linux'), ignore_stderr),
       # SIGBUS on OX X (PPC and x86 only; amd64 gives SEGV)
-      when(platform('i386-apple-darwin'), exit_code(138)),
-      when(platform('powerpc-apple-darwin'), exit_code(138)),
+      # The output under OS X is too unstable to readily compare
+      when(platform('i386-apple-darwin'), [ignore_stderr, exit_code(139)]),
+      when(platform('x86_64-apple-darwin'), [ignore_stderr, exit_code(139)]),
+      when(platform('powerpc-apple-darwin'), [ignore_stderr, exit_code(139)]),
       when(opsys('mingw32'), exit_code(1)),
       # since these test are supposed to crash the
       # profile report will be empty always.
@@ -47,6 +49,10 @@ test('divbyzero',
       when(platform('powerpc64-unknown-linux'), exit_code(0)),
       when(platform('powerpc64le-unknown-linux'), exit_code(0)),
       when(opsys('mingw32'), exit_code(1)),
+      # The output under OS X is too unstable to readily compare
+      when(platform('i386-apple-darwin'), [ignore_stderr, exit_code(136)]),
+      when(platform('x86_64-apple-darwin'), [ignore_stderr, exit_code(136)]),
+      when(platform('powerpc-apple-darwin'), [ignore_stderr, exit_code(136)]),
       # since these test are supposed to crash the
       # profile report will be empty always.
       # so disable the check for profiling



More information about the ghc-commits mailing list