diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-12-09 13:06:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-12-09 13:06:27 +0000 |
commit | 472d1be45e2fd626ef8b62addd92eda351243bc0 (patch) | |
tree | bf01248864c563745f9ecdd91c205fdf6be8b757 /t/helper.pm | |
parent | 92de8be382d389d46faa21c5b038e0e87dc1b6e5 (diff) | |
download | urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.gz urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.bz2 urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.tar.xz urpmi-472d1be45e2fd626ef8b62addd92eda351243bc0.zip |
segfault must not go undetected!
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 3 |
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 { |