summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/helper.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm
index 511c4ab0..9df53b4c 100644
--- a/t/helper.pm
+++ b/t/helper.pm
@@ -135,7 +135,8 @@ sub system_ {
sub system_should_fail {
my ($cmd) = @_;
system($cmd);
- ok($? != 0, "should fail: $cmd");
+ $? & 127 ? is($? & 127, 0, "should fail nicely but not get killed: $cmd")
+ : ok($? != 0, "should fail: $cmd");
}
sub rpm_is_jbj_version {