diff options
-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" }; |