Subject: | make test fails in some time zones |
Date: | Wed, 12 Jun 2013 23:10:08 -0300 |
To: | <bug-Schedule-Cron [...] rt.cpan.org> |
From: | Guillermo Prandi <rt.cpan.org [...] mailfilter.com.ar> |
Running "make test" with my default time zone ("ART") resulted in several errors in t/execution_time.t, as follows:
# Cron-Entry: 0 12 30 * *
# Ref-Time: Fri Feb 27 13:00:00 2009
# Calculated: Mon Mar 30 12:00:00 2009
# Expected: Mon Mar 30 12:00:00 2009
ok 46
# Cron-Entry: * 12 30 * *
# Ref-Time: Tue Jan 27 13:01:00 2009
# Calculated: Fri Jan 30 13:00:00 2009
# Expected: Fri Jan 30 13:00:00 2009
ok 47
# Cron-Entry: * 12 27 * *
# Ref-Time: Tue Jan 27 13:01:00 2009
# Calculated: Fri Feb 27 13:00:00 2009
# Expected: Tue Jan 27 13:02:00 2009
not ok 48
# Cron-Entry: * 12 * * *
# Ref-Time: Tue Jan 27 13:01:00 2009
# Calculated: Wed Jan 28 13:00:00 2009
# Expected: Tue Jan 27 13:02:00 2009
not ok 49
# Cron-Entry: * 13 * * *
# Ref-Time: Tue Jan 27 13:01:00 2009
# Calculated: Tue Jan 27 14:02:00 2009
# Expected: Tue Jan 27 14:00:00 2009
not ok 50
# Cron-Entry: 0 23 * * 1
# Ref-Time: Sat Sep 1 23:00:00 2007
# Calculated: Mon Sep 3 23:00:00 2007
# Expected: Mon Sep 3 23:00:00 2007
ok 51
# Cron-Entry: * * * * * */10
# Ref-Time: Sat Sep 1 23:00:55 2007
# Calculated: Sat Sep 1 23:01:00 2007
# Expected: Sat Sep 1 23:01:00 2007
ok 52
# Failed test at t/execution_time.t line 73.
# Failed test at t/execution_time.t line 73.
# Failed test at t/execution_time.t line 73.
# Looks like you failed 3 tests of 52.
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/52 subtests
I could pass all tests using:
TZ=UTC-0 make test
However, my server will be running with TZ=ART; I don't know if that workaround will fix it or will cause problems in the future.
Guillermo