summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-12-09 13:06:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-12-09 13:06:27 +0000
commit472d1be45e2fd626ef8b62addd92eda351243bc0 (patch)
treebf01248864c563745f9ecdd91c205fdf6be8b757
parent92de8be382d389d46faa21c5b038e0e87dc1b6e5 (diff)
downloadurpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar
urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.gz
urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.bz2
urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.xz
urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.zip
segfault must not go undetected!
-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 {