summaryrefslogtreecommitdiff
path: root/libraries/base/tests
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2014-08-10 22:40:37 +0200
committerKarel Gardas <karel.gardas@centrum.cz>2014-08-10 22:42:04 +0200
commit238fd05ee514bf3308be17aebb0ab8e805349b3e (patch)
tree5f50014e21a527a7393b7fc881478f4b98c267c9 /libraries/base/tests
parentbb003086599c2ac166cfb3aa710480713adb5a2f (diff)
downloadhaskell-238fd05ee514bf3308be17aebb0ab8e805349b3e.tar.gz
change topHandler02/topHandler03 tests to use signal_exit_code function
Test Plan: validate Reviewers: simonmar, austin Reviewed By: austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D127
Diffstat (limited to 'libraries/base/tests')
-rw-r--r--libraries/base/tests/all.T5
1 files changed, 2 insertions, 3 deletions
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index aa752c2a73..8b18d63f01 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -146,14 +146,13 @@ test('topHandler02',
# ignore the stdout here, we only care about the exit code (which itself
# is messed up because of the shell, using 128+sig encoding)
ignore_output,
- exit_code(130) # actually signal 2 SIGINT
+ signal_exit_code(2)
], compile_and_run, [''])
test('topHandler03',
[when(opsys('mingw32'), skip),
# As above, shells, grrr.
ignore_output,
- when(opsys('solaris2'), exit_code(15)), # Solaris signals 15 correctly
- when(not opsys('solaris2'), exit_code(143)) # actually signal 15 SIGTERM
+ signal_exit_code(15)
], compile_and_run, [''])