aboutsummaryrefslogtreecommitdiffstats
path: root/test.pl
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-15 15:43:29 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2013-02-15 15:43:29 +0100
commitb914c21124bb0cb887265f11bf50473c6f3b4e30 (patch)
treed032cde57b886f36a44519f355279eaa334d79ff /test.pl
parent59884b1380512e5e22fec0a592fcd3217606c274 (diff)
downloadcolorize-b914c21124bb0cb887265f11bf50473c6f3b4e30.tar.gz
colorize-b914c21124bb0cb887265f11bf50473c6f3b4e30.tar.bz2
Enclose valgrind test in skip block
Diffstat (limited to 'test.pl')
-rwxr-xr-xtest.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/test.pl b/test.pl
index 0ff1cbf..c7db5bf 100755
--- a/test.pl
+++ b/test.pl
@@ -73,8 +73,10 @@ SKIP: {
is(system("echo \"hello world\" | $program random --exclude-random=black >/dev/null 2>&1"), 0, 'switch exclude-random');
- skip 'valgrind not found', 1 unless system('which valgrind >/dev/null 2>&1') == 0;
- like(qx(valgrind $program none/none $infile1 2>&1 >/dev/null), qr/no leaks are possible/, 'valgrind memleaks');
+ SKIP: {
+ skip 'valgrind not found', 1 unless system('which valgrind >/dev/null 2>&1') == 0;
+ like(qx(valgrind $program none/none $infile1 2>&1 >/dev/null), qr/no leaks are possible/, 'valgrind memleaks');
+ }
print <<'EOT';
Colors