Skip Menu |

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

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

People
Owner: CHORNY [...] cpan.org
Requestors: ron [...] savage.net.au
Cc:
AdminCc:

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



Subject: Failed test 'Warnings and Carpings mixed, asked only for like carpings'
Command: nmake test Output: D:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/1................ok t/carped...........FAILED tests 2, 5 Failed 2/6 tests, 66.67% okay t/warning_is.......ok t/warning_like.....ok t/warnings_are.....ok t/warnings_like....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/carped.t 6 2 33.33% 2 5 Errors: Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. # Failed test 'Warnings and Carpings mixed, asked only for like carpings' # in t/carped.t at line 38. # STDERR is: # # Failed test in t/carped.t at line 37. # # found warning: Warning 1 at t/carped.t line 13. # # found carped warning: Carping 2 at t/carped.t line 14 # # found carped warning: Carping 3 at t/carped.t line 15 # # found warning: Warning 4 at t/carped.t line 16. # # expected to find carped warning: (?-xism:1) # # expected to find carped warning: (?-xism:2) # # expected to find carped warning: (?-xism:3) # # expected to find carped warning: (?-xism:4) #  # not: # (?-xism:#\s+Failed\ test.*?\n?.*?t\/carped\.t at line 37.*\n?) # # found warning: Warning 1 at t\carped.t line 13. #  # # found carped warning: Carping 2 at t\carped.t line 14 #  # # found carped warning: Carping 3 at t\carped.t line 15 #  # # found warning: Warning 4 at t\carped.t line 16. #  # # expected to find carped warning: (?-xism:1) #  # # expected to find carped warning: (?-xism:2) #  # # expected to find carped warning: (?-xism:3) #  # # expected to find carped warning: (?-xism:4) #  # as expected # Failed test 'Warnings and Carpings mixed, asked only for carpings' # in t/carped.t at line 61. # STDERR is: # # Failed test in t/carped.t at line 60. # # found warning: Warning 1 at t/carped.t line 13. # # found carped warning: Carping 2 at t/carped.t line 14 # # found carped warning: Carping 3 at t/carped.t line 15 # # found warning: Warning 4 at t/carped.t line 16. # # expected to find carped warning: Warning 1 # # expected to find carped warning: Carping 2 # # expected to find carped warning: Carping 3 # # expected to find carped warning: Warning 4 #  # not: # (?-xism:#\s+Failed\ test.*?\n?.*?t\/carped\.t at line 60.*\n?) # # found warning: Warning 1 at t\carped.t line 13. #  # # found carped warning: Carping 2 at t\carped.t line 14 #  # # found carped warning: Carping 3 at t\carped.t line 15 #  # # found warning: Warning 4 at t\carped.t line 16. #  # # expected to find carped warning: Warning 1 #  # # expected to find carped warning: Carping 2 #  # # expected to find carped warning: Carping 3 #  # # expected to find carped warning: Warning 4 #  # as expected Failed 1/6 test scripts, 83.33% okay. 2/823 subtests failed, 99.76% okay. NMAKE : fatal error U1077: 'D:\Perl\bin\perl.exe' : return code '0xff' Stop.
On Tue Dec 20 19:34:29 2005, guest wrote: This looks like a bug the test. It is caused by my $tcarped = File::Spec->catfile('t','carped.t'); producing a file name with windows dir seperator i.e. \ but the warnings being produced with unix dir seperator i.e \ Adding $tcarped =~ s/\\/\//g; just after the line above helps the tests to pass. This is clearer if you comment out Test::Builder::Tester::color as your terminal on windows probably does not support colors.
RT-Send-CC: PSINNOTT [...] cpan.org
Thanks for patch. Fixed in 0.09. -- Alexandr Ciornii, http://chorny.net