This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffdb8b1
)
line_debug.t: Add diagnostics
author
Father Chrysostomos
<sprout@cpan.org>
Sun, 1 Sep 2013 20:33:49 +0000
(13:33 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Sun, 1 Sep 2013 20:34:28 +0000
(13:34 -0700)
t/comp/line_debug.t
patch
|
blob
|
blame
|
history
diff --git
a/t/comp/line_debug.t
b/t/comp/line_debug.t
index
175c71a
..
8361194
100644
(file)
--- a/
t/comp/line_debug.t
+++ b/
t/comp/line_debug.t
@@
-6,6
+6,7
@@
sub ok {
my($test,$ok) = @_;
print "not " unless $ok;
print "ok $test\n";
+ $ok;
}
# The auxiliary file contains a bunch of code that systematically exercises
@@
-25,7
+26,10
@@
ok 1, scalar(@{"_<comp/line_debug_0.aux"}) == 1+$nlines;
ok 2, !defined(${"_<comp/line_debug_0.aux"}[0]);
for(1..$nlines) {
- ok 2+$_, ${"_<comp/line_debug_0.aux"}[$_] eq $lines[$_-1];
+ if (!ok 2+$_, ${"_<comp/line_debug_0.aux"}[$_] eq $lines[$_-1]) {
+ print "# Got: ", ${"_<comp/line_debug_0.aux"}[$_]//"undef\n";
+ print "# Expected: $lines[$_-1]";
+ }
}
1;