]> git.refcnt.org Git - colorize.git/commitdiff
Enclose valgrind test in skip block
authorSteven Schubiger <stsc@refcnt.org>
Fri, 15 Feb 2013 14:43:29 +0000 (15:43 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Fri, 15 Feb 2013 14:43:29 +0000 (15:43 +0100)
test.pl

diff --git a/test.pl b/test.pl
index 0ff1cbfb1196a1e65cab3137b8f45478400a7a79..c7db5bfca7feba28becea409975f90c4b995f598 100755 (executable)
--- 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