diff options
author | Tony Cook <tony@develop-help.com> | 2012-12-17 20:05:56 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2012-12-17 20:05:56 +1100 |
commit | c004423157a75cf7cb0aa890d9fbe27de84dfb9a (patch) | |
tree | 6f5a84054e0ef05aa88a87d6a0b5ec9ac0f30f33 /t | |
parent | e2b8b3e7fdfd63eca46d686d66dd4e7a69045de5 (diff) | |
download | perl-c004423157a75cf7cb0aa890d9fbe27de84dfb9a.tar.gz |
SKIP in run_multiple_progs() was parsed but unimplemented, implement it
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -985,6 +985,7 @@ sub run_multiple_progs { my $tmpfile = tempfile(); + PROGRAM: for (@prgs){ unless (/\n/) { print "# From $_\n"; @@ -1011,11 +1012,20 @@ sub run_multiple_progs { $reason{$what} = $temp; } } + my $name = ''; if ($prog =~ s/^#\s*NAME\s+(.+)\n//m) { $name = $1; } + if ($reason{skip}) { + SKIP: + { + skip($name ? "$name - $reason{skip}" : $reason{skip}, 1); + } + next PROGRAM; + } + if ($prog =~ /--FILE--/) { my @files = split(/\n?--FILE--\s*([^\s\n]*)\s*\n/, $prog) ; shift @files ; |