diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2005-05-08 14:39:19 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2005-05-08 14:39:19 +0000 |
commit | a58906773179c9740172c13629670adffd875da4 (patch) | |
tree | 9d4e0fcd418e0325e9ebef0d44b4a6678519713f /t/TEST | |
parent | f728784643460445f91833d46f0c8bf60beb6583 (diff) | |
download | perl-a58906773179c9740172c13629670adffd875da4.tar.gz |
t/TEST's new error messages now include the prefix 'FAILURE--'
p4raw-id: //depot/perl@24417
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -419,12 +419,12 @@ EOT unless (/^\#/) { if ($trailing_leader) { # shouldn't be anything following a postfix 1..n - $failure = 'extra output after trailing 1..n'; + $failure = 'FAILED--extra output after trailing 1..n'; last; } if (/^1\.\.([0-9]+)( todo ([\d ]+))?/) { if ($seen_leader) { - $failure = 'seen duplicate leader'; + $failure = 'FAILED--seen duplicate leader'; last; } $max = $1; @@ -435,7 +435,7 @@ EOT # 1..n appears at end of file $trailing_leader = 1; if ($next != $max) { - $failure = "expected $max tests, saw $next"; + $failure = "FAILED--expected $max tests, saw $next"; last; } } @@ -467,7 +467,7 @@ EOT } } else { - $failure ="expected test $next, saw test $2"; + $failure ="FAILED--expected test $next, saw test $2"; last; } } @@ -475,7 +475,7 @@ EOT die "FAILED--Further testing stopped" . ($1 ? ": $1\n" : ".\n"); } else { - $failure = "Unexpected output at test $next"; + $failure = "FAILED--unexpected output at test $next"; last; } } @@ -484,7 +484,7 @@ EOT close RESULTS; if (not defined $failure) { - $failure = 'no leader found' unless $seen_leader; + $failure = 'FAILED--no leader found' unless $seen_leader; } if ($ENV{PERL_VALGRIND}) { @@ -544,7 +544,7 @@ EOT $failure = "Test did not compile"; } if (not defined $failure and $next != $max) { - $failure="expected $max tests, saw $next"; + $failure="FAILED--expected $max tests, saw $next"; } if (defined $failure) { |