}
for (1 .. $count) {
+ ++$test;
+
my $skip_str = "ok $test # skip";
if (defined $reason) {
sanitize_comment($reason);
local $\;
print $TAP_STREAM "$skip_str\n";
-
- $test++;
}
no warnings 'exiting';
--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner tests => 7;
+
+pass 'test begin';
+
+SKIP: {
+ skip 'test skipping a block' => 1;
+ fail 'should not be reached';
+}
+
+SKIP: {
+ pass 'outer block begin';
+ SKIP: {
+ skip 'test skipping the inner nested block' => 1;
+ fail 'should not be reached either';
+ }
+ pass 'back to outer block';
+ skip 'test skipping the outer nested block' => 1;
+ fail 'should not be reached as well';
+}
+
+pass 'test end';