diff options
Diffstat (limited to 't/06-remove.t')
-rwxr-xr-x | t/06-remove.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/06-remove.t b/t/06-remove.t index 322b8f7..686ae16 100755 --- a/t/06-remove.t +++ b/t/06-remove.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 => 4; + plan tests => 5; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -55,6 +55,10 @@ sboinstall 'nonexistentslackbuild4', { input => "y\ny\ny", test => 0 }; sboremove qw/ nonexistentslackbuild4 nonexistentslackbuild5 /, { input => "y\ny\ny", expected => qr/Remove nonexistentslackbuild4\b.*Remove nonexistentslackbuild5\b.*Removing 2 package\(s\)/s }; +# 5: sboremove namethatdoesntexist slackbuildthatisntinstalld +sboremove qw/ nonexistentslackbuildwhosenamedoesntexist nonexistentslackbuild /, + { exit => 1, expected => "Unable to locate nonexistentslackbuildwhosenamedoesntexist in the SlackBuilds.org tree.\nnonexistentslackbuild is not installed\n" }; + # Cleanup END { cleanup(); |