summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Buchanan <d@vidbuchanan.co.uk>2021-06-21 17:24:23 +0100
committerDavid Buchanan <d@vidbuchanan.co.uk>2021-06-21 17:24:23 +0100
commit79f2dffe1b5f5c6656285ce0bc65b5e4c5c9bb10 (patch)
treeec7f9bb4de46c4b3ff37c5905d3cc005078b9371
parentbc372c8faddd396b2d07470139b62290f499881f (diff)
Add test case for tiny PBM file
-rw-r--r--test/feh.t6
-rw-r--r--test/tiny.pbm4
2 files changed, 9 insertions, 1 deletions
diff --git a/test/feh.t b/test/feh.t
index 44f705f..157125d 100644
--- a/test/feh.t
+++ b/test/feh.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
use 5.010;
-use Test::Command tests => 71;
+use Test::Command tests => 73;
$ENV{HOME} = 'test';
@@ -186,3 +186,7 @@ $cmd
$cmd->exit_is_num(0);
$cmd->stdout_is_file("test/${list_dir}/default");
$cmd->stderr_is_eq('');
+
+$cmd = Test::Command->new( cmd => "$feh --list test/tiny.pbm" );
+$cmd->exit_is_num(0);
+$cmd->stderr_is_eq('');
diff --git a/test/tiny.pbm b/test/tiny.pbm
new file mode 100644
index 0000000..3fb3e4e
--- /dev/null
+++ b/test/tiny.pbm
@@ -0,0 +1,4 @@
+P4
+1 1
+
+