diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-10-02 12:01:21 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-10-02 14:57:45 -0400 |
commit | 8cab9bd5eeb9cdb1afa6be7682c861c8efee475a (patch) | |
tree | b6153b5ce41e5a04d66f9e829642b0d5fbacc425 /testsuite/tests | |
parent | 3630ad355a5b7be0240d3071bb662fe710909cca (diff) | |
download | haskell-8cab9bd5eeb9cdb1afa6be7682c861c8efee475a.tar.gz |
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.
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/rts/all.T | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T index 96928464fb..fc37f8d43d 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 |