Subject: | Bug in t/is_deeply_fail.t |
There's a bug in a test in t/is_deeply_fail.t in Test-Simple-0.64,
apparently since it was added in the distro in version 0.62. It's still
present in 0.64 but for some reason, rt.cpan.org won't list that version
in the dropdowns.
It is caused by using plain $0 in a regex in the like() sub, which fails
to match properly if the path to this test file contains a backslash, as
happens on PXPerl on Windows. (For some reason, it doesn't happen on
ActivePerl, which uses plain slashes.)
The attached patch fixes it.
Subject: | is_deeply_fail.t.patch.txt |
--- Test-Simple-0.64/t/is_deeply_fail.t Sun Jul 9 09:49:50 2006
+++ is_deeply_fail.t.edit Mon Sep 4 01:29:42 2006
@@ -364,7 +364,7 @@
ok !is_deeply( $glob1, $glob2 ), 'typeglobs';
is( $out, "not ok 28\n" );
like( $err, <<ERR, ' right diagnostic' );
-# Failed test in $0 at line 357.
+# Failed test in $Filename at line 357.
# Structures begin differing at:
# \\\$got = GLOB\\(0x[0-9a-f]+\\)
# \\\$expected = GLOB\\(0x[0-9a-f]+\\)