summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2012-12-17 20:05:56 +1100
committerTony Cook <tony@develop-help.com>2012-12-17 20:05:56 +1100
commitc004423157a75cf7cb0aa890d9fbe27de84dfb9a (patch)
tree6f5a84054e0ef05aa88a87d6a0b5ec9ac0f30f33 /t
parente2b8b3e7fdfd63eca46d686d66dd4e7a69045de5 (diff)
downloadperl-c004423157a75cf7cb0aa890d9fbe27de84dfb9a.tar.gz
SKIP in run_multiple_progs() was parsed but unimplemented, implement it
Diffstat (limited to 't')
-rw-r--r--t/test.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index c4e6fd1e67..e141b9174f 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -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 ;