summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-08-28 05:57:39 -0400
committerArtur Bergman <sky@nanisky.com>2001-08-28 13:01:20 +0000
commit17639bde299d25109390c82720c805c9f43b1309 (patch)
treec4246006c7e555881455b60f4600d35b27dcc1a4 /pod
parent44f0be639a72c23a82ef49a1790b9b38a494dd31 (diff)
downloadperl-17639bde299d25109390c82720c805c9f43b1309.tar.gz
Adding the failure diagnostic
Message-ID: <20010828095738.E17775@blackrider> p4raw-id: //depot/perl@11772
Diffstat (limited to 'pod')
-rw-r--r--pod/perlhack.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 43e04d4aa3..5aff68e492 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -1489,6 +1489,8 @@ write one easily.
$out .= "ok $test\n";
print $out;
+ printf "# Failed test at line %d\n", (caller)[2] unless $ok;
+
$test++;
return $ok;
}