summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-03-22 19:30:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-03-22 19:30:51 +0100
commit0d9f71a6ed05b41a89b10c2bcfc52fb5bbaea9fd (patch)
treedb7e036dfffafdbda952049b9fad861ed4d4d7ec /test
parent56dec873222e8881847ebcb246eaf67d69e4e86a (diff)
winwidget.c: Rename alias; update feh.t while at it
Diffstat (limited to 'test')
-rw-r--r--test/feh.t14
1 files changed, 2 insertions, 12 deletions
diff --git a/test/feh.t b/test/feh.t
index 69fd5d2..5713de4 100644
--- a/test/feh.t
+++ b/test/feh.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use 5.010;
-use Test::Command tests => 63;
+use Test::Command tests => 60;
$ENV{HOME} = 'test';
@@ -39,17 +39,7 @@ my $re_loadable = qr{test/ok/...};
my $re_unloadable = qr{test/fail/...};
my $re_list_action = qr{test/ok/... 16x16 \(${feh_name}\)};
-my $cmd = Test::Command->new(cmd => $feh);
-
-# Insufficient Arguments -> Usage should return failure
-$cmd->exit_is_num(1, 'missing arguments return 1');
-$cmd->stdout_is_eq('', 'missing arguments print usage (!stdout)');
-$cmd->stderr_is_eq(<<"EOF", 'missing arguments print usage (stderr)');
-${feh_name} - No loadable images specified.
-Use ${feh_name} --help for detailed usage information
-EOF
-
-$cmd = Test::Command->new(cmd => "$feh --version");
+my $cmd = Test::Command->new(cmd => "$feh --version");
$cmd->exit_is_num(0);
$cmd->stdout_is_eq("${feh_name} version ${feh_version}\n"