aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2014-06-11 14:55:04 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2014-06-11 14:55:04 +0200
commit055b7ca1312376f2fdf214176a1ae782d05f5396 (patch)
tree8633f80f507b15a55edb7c0bbcc4124928ff373c
parent81903a7c50b7fef9e8b3083c4ad165707a5b58d4 (diff)
downloadcolorize-055b7ca1312376f2fdf214176a1ae782d05f5396.tar.gz
colorize-055b7ca1312376f2fdf214176a1ae782d05f5396.tar.bz2
Check exit value for displaying version data
-rwxr-xr-xtest.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/test.pl b/test.pl
index 8d8b592..27f7a67 100755
--- a/test.pl
+++ b/test.pl
@@ -10,7 +10,7 @@ use IPC::Open3 qw(open3);
use Symbol qw(gensym);
use Test::More;
-my $tests = 23;
+my $tests = 24;
my %BUF_SIZE = (
normal => 1024,
@@ -42,7 +42,8 @@ SKIP: {
my $program = tmpnam();
skip 'compiling failed (normal)', $tests unless system("gcc -DTEST -DBUF_SIZE=$BUF_SIZE{normal} -o $program $source") == 0;
- is(system("$program --help >/dev/null 2>&1"), 0, 'exit value for help screen');
+ is(system("$program --help >/dev/null 2>&1"), 0, 'exit value for help screen');
+ is(system("$program --version >/dev/null 2>&1"), 0, 'exit value for version data');
my $run_program_fail = sub
{