in reply to Inscrutable test failure

Adding just another thought.

As you are mixing basically two different ways of dealing with date&time (Date::Manip and Perl core's localtime), I guess there are also real chances that the two might disagree on what the local timezone is (and as such, how they would deal with the epoch).

Date:Manip says that
---
Date::Manip must be able to determine the timezone the user is in. It does this by looking in the following places: $Date::Manip::TZ (set with Date_Init or in Manip.pm) $ENV{TZ} the unix ‘date‘ command (if available) $main::TZ /etc/TIMEZONE /etc/timezone At least one of these should contain a timezone in one of the supported forms. If none do by default, the TZ variable must be set with Date_Init.
---
Seems quite possible that the two might disagree - which would make 'last sunday' - which is taken at midnight - easily become 'Saturday' even for a slighty different TZ. (If so, it might be that 'last sunday noon' wouldn't have run into troubles).

I'm really curious now about what you'll find.

Krambambuli
---
enjoying Mark Jason Dominus' Higher-Order Perl

Replies are listed 'Best First'.
Re^2: Inscrutable test failure
by dsheroh (Monsignor) on Oct 27, 2007 at 15:06 UTC
    I missed that list in the docs - thanks for pointing it out. That, along with the others' suggestions to improve the reporting on failed tests, gives me someplace meaningful to look for a cause even if I'm not able to interact directly with the problem machine.