diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-28 00:04:11 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-28 00:04:11 +0200 |
commit | 3b00c411e2109d9f9113528c5de4e9d28ab5c8f8 (patch) | |
tree | feaa8c1c3d80642429662669d8ed1b34172523bc | |
parent | bfbfada392727a4ed8ae13f0b2a95adf4d2c35df (diff) | |
download | sbotools2-3b00c411e2109d9f9113528c5de4e9d28ab5c8f8.tar.xz |
16-clean.t: add test for sboclean without argument
-rwxr-xr-x | t/16-clean.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/16-clean.t b/t/16-clean.t index d6a8e66..f5f0399 100755 --- a/t/16-clean.t +++ b/t/16-clean.t @@ -10,7 +10,7 @@ use lib $RealBin; use Test::Sbotools qw/ make_slackbuilds_txt set_distclean set_noclean set_lo sboinstall sboclean sboremove restore_perf_dummy /; use SBO::Lib; -plan tests => 10; +plan tests => 11; my $sboname = "nonexistentslackbuild"; my $perf = "/usr/sbo/distfiles/perf.dummy"; @@ -69,3 +69,5 @@ ok (!-e $perf, "perf.dummy cleaned after install with -d."); restore_perf_dummy(); cleanup(); +# 11: check that sboclean errors properly without arguments +sboclean { exit => 1, expected => "You must specify at least one of -d or -w.\n" }; |