summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2014-08-04 08:15:54 -0500
committerAustin Seipp <austin@well-typed.com>2014-08-04 08:15:54 -0500
commit1f24a03234a6b0bb0e38a47a471ef3004ce858d0 (patch)
treecf8cf177e32381bead4cb0d1e9ce3fe21c4ce54c /libraries
parent7328deb691c4aed06db8aecc84d0119ef633ab78 (diff)
downloadhaskell-1f24a03234a6b0bb0e38a47a471ef3004ce858d0.tar.gz
fix topHandler03 execution on Solaris where shell signals SIGTERM correctly
Summary: This patch fixes topHandler03 execution on Solaris where shell correctly signals SIGTERM as exit status 15. Test Plan: validate Reviewers: austin Reviewed By: austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D112
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/tests/all.T3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index 12a241085a..c85d7bc1eb 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -152,7 +152,8 @@ test('topHandler03',
[when(opsys('mingw32'), skip),
# As above, shells, grrr.
ignore_output,
- exit_code(143) # actually signal 15 SIGTERM
+ when(opsys('solaris2'), exit_code(15)), # Solaris signals 15 correctly
+ when(not opsys('solaris2'), exit_code(143)) # actually signal 15 SIGTERM
], compile_and_run, [''])