summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2005-05-08 14:39:19 +0000
committerDave Mitchell <davem@fdisolutions.com>2005-05-08 14:39:19 +0000
commita58906773179c9740172c13629670adffd875da4 (patch)
tree9d4e0fcd418e0325e9ebef0d44b4a6678519713f /t/TEST
parentf728784643460445f91833d46f0c8bf60beb6583 (diff)
downloadperl-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-xt/TEST14
1 files changed, 7 insertions, 7 deletions
diff --git a/t/TEST b/t/TEST
index 15c6da9c15..f724ecd83c 100755
--- a/t/TEST
+++ b/t/TEST
@@ -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) {