From b914c21124bb0cb887265f11bf50473c6f3b4e30 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Fri, 15 Feb 2013 15:43:29 +0100 Subject: Enclose valgrind test in skip block --- test.pl | 6 ++++-- 1 file 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 -- cgit v1.2.3