From dd364c62626dc5d2d98120da0a97e963e716d7c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Wed, 31 Oct 2018 18:22:48 -0400 Subject: [PATCH] t: check the exit code when called without options --- t/meta.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/meta.t b/t/meta.t index 97391e5..0ba9803 100644 --- a/t/meta.t +++ b/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