diff options
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/helper.pm b/t/helper.pm index a7959dae..e3c3a008 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -109,6 +109,8 @@ sub system_ { sub system_should_fail { my ($cmd) = @_; system($cmd); + # on some error questions ("Do you want to... (y/N)?"), urpmi doesn't output "\n": + print "\n"; $? & 127 ? is($? & 127, 0, "should fail nicely but not get killed: $cmd") : ok($? != 0, "should fail: $cmd"); } |