Skip Menu |

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

Report information
The Basics
Id: 39579
Status: resolved
Priority: 0/
Queue: Test-Warn

People
Owner: CHORNY [...] cpan.org
Requestors:
Cc:
AdminCc:

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



Subject: t/carped.t fails on VMS with Perl 5.8.7 - PATCH
Hello and thank you for Test::Warn 0.11 t/carped.t fails on VMS with Perl 5.8.7 because the warn being checked contains a *nix file path as this is the syntax used when "make test" (I'm using MMK) invokes the tests thus: MCR _dev:[path]perl.exe "-MExtUtils::Command::MM" "-e" "test_harness (0, '[.blib.lib]', '[.blib.arch]')" t/*.t The fix is to set $tcarped to "t/carped.t" on VMS, otherwise it is "[.t]carped.t" and this does not match the warn: ==== test-warn-0_11/t/carped.t#1 - test-warn-0_11/t/carped.t ==== 20a21,30 Show quoted text
> > # When running this test on VMS the output of the filename > # is t/carped.t, and NOT [.t]carped.t > # It seems strange having to add this condition to get the tests to
pass, Show quoted text
> # but maybe other OS's versions of Perl warn/warn with the OS version
of the filename. Show quoted text
> > if ($^O eq 'VMS') { > $tcarped = 't/carped.t'; > } >
Cheers, Peter (Stig) Edwards
Fixed in 11_02 -- Alexandr Ciornii, http://chorny.net