Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 21310
Status: resolved
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: bart.lateur [...] pandora.be
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.62
  • 0.63
Fixed in: (no value)



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]+\\)
Thanks. Will be in 0.65