From 878e733430580581b4874c5b612ddba810443760 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Sat, 27 Jul 2019 21:15:35 +0200 Subject: [PATCH] t: fixing skip --- t/test.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/test.t b/t/test.t index e994a62e..1d02813f 100644 --- a/t/test.t +++ b/t/test.t @@ -50,8 +50,10 @@ sub process_file { use v5.10.1; if ( -r "$file.nocheck") { - skip( sprintf("\nFile '%s' has a .nocheck flag. Ignoring\n", $file), 1); - pass("Not pretending everything is ok"); + SKIP: { + skip( sprintf("\nFile '%s' has a .nocheck flag. Ignoring\n", $file), 1); + pass("Not pretending everything is ok"); + } } elsif ( ! -x $file ) { # missing executable flag