sbotools2

Maintenance fork of the original sbotools version 2
Log | Files | Refs | README

commit 3b00c411e2109d9f9113528c5de4e9d28ab5c8f8
parent bfbfada392727a4ed8ae13f0b2a95adf4d2c35df
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date:   Thu, 28 Apr 2016 00:04:11 +0200

16-clean.t: add test for sboclean without argument

Diffstat:
Mt/16-clean.t | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

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