Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-Format-Strptime CPAN distribution.

Report information
The Basics
Id: 2857
Status: resolved
Priority: 0/
Queue: DateTime-Format-Strptime

People
Owner: rickm [...] cpan.org
Requestors: Ronald.hill [...] plms-eds.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.0301
Fixed in: (no value)



Subject: Fails test number 4 for croak
F:\perl_modules\DateTime-Format-Strptime-1.03>nmake test Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. F:\perl\bin\Perl.exe -Mblib -IF:\Perl\lib -IF:\Perl\lib -e "use Test::H verbose); $verbose=0; runtests @ARGV;" t\001_load.t t\002_dates.t t\003_every.t Using F:/perl_modules/DateTime-Format-Strptime-1.03/blib t\001_load.....ok t\002_dates....ok t\003_every....ok t\004_croak....NOK 4# Failed test (t\004_croak.t at line 15) # got: 'Unidentified token in pattern: %X in %Y %X at t\004_croak.t li # expected: 'Unidentified token in pattern: %X in %Y %X at t/004_croak.t li # Turned Croak Off t\004_croak....ok 14/30# Turned Croak On t\004_croak....NOK 16# Failed test (t\004_croak.t at line 75) # got: 'WARN: Unidentified token in pattern: %X in %X. Leaving old pat _croak.t line' # expected: 'WARN: Unidentified token in pattern: %X in %X. Leaving old pat _croak.t line' t\004_croak....NOK 18# Failed test (t\004_croak.t at line 80) # got: 'Your datetime does not match your pattern. at t\004_croak.t li # expected: 'Your datetime does not match your pattern. at t/004_croak.t li t\004_croak....NOK 20# Failed test (t\004_croak.t at line 85) # got: 'Your two year values (03 and 2002) do not match. at t\004_croa # expected: 'Your two year values (03 and 2002) do not match. at t/004_croa # Turned Croak to Sub t\004_croak....ok 30/30# Looks like you failed 4 tests of 30. t\004_croak....dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 4, 16, 18, 20 Failed 4/30 tests, 86.67% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------------- --- t\004_croak.t 4 1024 30 4 13.33% 4 16 18 20 Failed 1/4 test scripts, 75.00% okay. 4/56 subtests failed, 92.86% okay. NMAKE : fatal error U1077: 'F:\perl\bin\Perl.exe' : return code '0x2' Stop.
From: ronald.hill [...] plms-eds.com
[guest - Thu Jun 26 08:44:59 2003]: Hi Rick, I have looked at this some more and found out that the message for the croak tests needs to be changed. At the top of croak.t I added this if ($^O =~ /MSWin32/ ) { $croak ='t\\004_croak.t'; }else{ $croak ='t/004_croak.t'; } Then I went through and changed all occurences of 't/004_croak.t' to use $croak. I reran the tests and they all pass. I have not tested this on any unix systems.