Anyone have any idea why this might fail on Linux?

---------- Forwarded message ----------
Date: Thu, 21 Aug 2003 04:17:23 -0400 (EDT)
From: Guest via RT <[EMAIL PROTECTED]>
To: AdminCc of cpan Ticket #3303:  ;
Subject: [cpan #3303] test t20infinite.t failed on Linux mandrake 9.0


This message about DateTime was sent to you by guest <> via rt.cpan.org

Full context and any attached attachments can be found at:
<URL: https://rt.cpan.org/Ticket/Display.html?id=3303 >

The test t/infinite20.t (DateTime-1601 with perl 5.8.0) failed at line 53 and then at 
line 61 (certainly because of the first failure). I added a debug line after line 53:
    print STDERR 
"\nlong_ago=",$long_ago->ymd,"\nneg_dur=",$neg_dur->deltas,"\nneg2=",$neg2->ymd,"\nneg=",$neg->ymd,"\n\n";

and I get the following output:

t/20infinite............ok 8/40
long_ago=-100000-01-01
neg_dur=months0days-infminutes0secondsnannanoseconds-inf
neg2=-0001--01--01
neg=-2147483648--2147483648--2147483648


There is certainly a misinterpretation of -infinite time, is negative enough or should 
it be -inf--inf--inf ?

Ghislain Picard

Reply via email to