mirror of
https://github.com/fmang/opustags.git
synced 2025-01-16 05:03:13 +01:00
t: check the exit code when called without options
This commit is contained in:
parent
a3e7624866
commit
dd364c6262
3
t/meta.t
3
t/meta.t
@ -4,7 +4,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Test::More tests => 7;
|
||||
use Test::More tests => 8;
|
||||
|
||||
my $opustags = './opustags';
|
||||
BAIL_OUT("$opustags does not exist or is not executable") if (! -x $opustags);
|
||||
@ -18,6 +18,7 @@ Usage: opustags --help
|
||||
opustags [OPTIONS] FILE
|
||||
opustags OPTIONS FILE -o FILE
|
||||
EOF
|
||||
is($?, 0, 'no option is not an error'); # should it be?
|
||||
|
||||
my $help = <<"EOF";
|
||||
$version
|
||||
|
Loading…
x
Reference in New Issue
Block a user