Skip Menu |

This queue is for tickets about the ExtUtils-Depends CPAN distribution.

Report information
The Basics
Id: 95301
Status: resolved
Priority: 0/
Queue: ExtUtils-Depends

People
Owner: XAOC [...] cpan.org
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.307
Fixed in: (no value)



Subject: fails 02_save_load.t with path missmatch on Win32
cp lib/ExtUtils/Depends.pm blib\lib\ExtUtils\Depends.pm
C:\strawberry-5.19.11\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/01_load.t ........ ok

Show quoted text
#   Failed test 'check typemaps actually saved/loaded'
#   at t/02_save_load.t line 85.
#     Structures begin differing at:
#          $got->[0] = 'C:\Users\Kent\AppData\Local\Temp\zUi1AIh1j1\DepTest\Install\foo.typemap'
#     $expected->[0] = 'foo.typemap'
# Looks like you failed 1 test of 28.
t/02_save_load.t ...
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/28 subtests
t/03_deps.t ........ ok
t/04_extra_libs.t .. ok
Hi The following is patch for that. I tested both on windows and linux. --- t\02_save_load.t.org Tue Apr 29 14:42:28 2014 +++ t\02_save_load.t Sat May 03 13:14:21 2014 @@ -80,7 +80,7 @@ isnt (index($info->{inc}, $inc), -1); my @typemaps_expected = map { my $t = $_; $t =~ s#build/##; $t } @typemaps; -sub strip_typemap { my $t = $_; $t =~ s#.*DepTest/Install/##; $t } +sub strip_typemap { my $t = $_; my $tmp = catfile('DepTest','Install',' '); $tmp =~ s# $##; $t =~ s#.*\Q$tmp\E##; $t } is_deeply ( [ map { strip_typemap($_) } @{$info->{typemaps}} ], \@typemaps_expected, On Fri May 02 22:27:42 2014, KENTNL wrote: Show quoted text
> cp lib/ExtUtils/Depends.pm blib\lib\ExtUtils\Depends.pm > C:\strawberry-5.19.11\perl\bin\perl.exe "-MExtUtils::Command::MM" > "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib\lib', 'blib\arch')" t/*.t > t/01_load.t ........ ok > > # Failed test 'check typemaps actually saved/loaded' > # at t/02_save_load.t line 85. > # Structures begin differing at: > # $got->[0] = > 'C:\Users\Kent\AppData\Local\Temp\zUi1AIh1j1\DepTest\Install\foo.typemap' > # $expected->[0] = 'foo.typemap' > # Looks like you failed 1 test of 28. > t/02_save_load.t ... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/28 subtests > t/03_deps.t ........ ok > t/04_extra_libs.t .. ok
Thanks for the patch. I just pushed it out.
Reopening this, as the claim that it is pushed out does not match with the fact that 3.07 is still the latest and broken release on CPAN.
Fix now available on CPAN/Sourceforge as version 0.308. Changing ticket status to "resolved"