projects
/
p5sagit/Devel-PeekPoke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4584cb0
)
Better diagnostic in our lightweight is() replacement
Peter Rabbitson [Wed, 10 Sep 2014 08:28:31 +0000 (10:28 +0200)]
t/03torture.t
patch
|
blob
|
blame
|
history
diff --git
a/t/03torture.t
b/t/03torture.t
index
ba674ce
..
76e2fc3
100644
(file)
--- a/
t/03torture.t
+++ b/
t/03torture.t
@@
-15,6
+15,16
@@
sub is {
$::TEST_COUNT,
$_[2] || '',
);
+ if ($str ne 'ok') {
+ printf STDERR ("# Failed test #%d at %s line %d
+# %s
+# ne
+# %s
+" , $::TEST_COUNT, (caller(0))[1,2],
+ , (map { unpack 'H*', $_ } @_[0,1])
+ );
+ }
+
}
threads->yield if $INC{'threads.pm'};
}