This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate mainline
[perl5.git] / lib / Test / Harness.pm
index e5df1f8..0a7a762 100644 (file)
@@ -714,6 +714,8 @@ sub _parse_test_line {
                $tot->{ok}++;
                $test->{skipped}++ if $isskip;
 
+               $reason = '[no reason given]'
+                   if $isskip and not defined $reason;
                if (defined $reason and defined $test->{skip_reason}) {
                    # print "was: '$skip_reason' new '$reason'\n";
                    $test->{skip_reason} = 'various reasons'