aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/07-fail.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/07-fail.t b/t/07-fail.t
index 74f671c..fd81678 100755
--- a/t/07-fail.t
+++ b/t/07-fail.t
@@ -10,7 +10,7 @@ use lib $RealBin;
use Test::Sbotools qw/ make_slackbuilds_txt set_lo sboinstall sboremove /;
if ($ENV{TEST_INSTALL}) {
- plan tests => 18;
+ plan tests => 19;
} else {
plan skip_all => 'Only run these tests if TEST_INSTALL=1';
}
@@ -157,6 +157,9 @@ sboinstall 'failingslackbuild3', { input => "y\ny", expected => qr/Failures:\n
sboinstall 'nonexistentslackbuild2', { input => "y\ny\ny\ny", expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n/, exit => 0 };
sboremove 'nonexistentslackbuild2', { input => "y\ny", test => 0 };
+# 19: Slackbuild fails during noninteractive run
+sboinstall qw/ -r failingslackbuild /, { expected => qr/Failures:\n failingslackbuild: failingslackbuild.SlackBuild return non-zero\n/, exit => 3 };
+
# Cleanup
END {
cleanup();