aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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