# HG changeset patch # User Sébastien Brissaud # Date 1455470337 -3600 # Node ID 79d8e7926a04a4eb93cfc5eb3755a3c984d3531a # Parent 855d9b2eea67e5087ac9781c57867ef1a24d52ba test-parse-date: defines explicit start/end dates for DST Prior to this patch, DST times where tested by specifying a custom TZ environment variable that didn't defined DST transition times. Due to a bug in glibc, the test fail on 32bits platforms that use timezone files generated by zic from tzcode >= 2014c (glibc >= 2.20). See https://sourceware.org/bugzilla/show_bug.cgi?id=19738 By defining explicit transition times for DST in the TZ environment variable, the test is now independant to how the system guess those transition times. diff -r 855d9b2eea67 -r 79d8e7926a04 tests/test-parse-date.t --- a/tests/test-parse-date.t Wed Mar 09 18:58:51 2016 +0000 +++ b/tests/test-parse-date.t Sun Feb 14 18:18:57 2016 +0100 @@ -28,10 +28,12 @@ Check with local timezone other than GMT and with DST - $ TZ="PST+8PDT" + $ TZ="PST+8PDT+7,M4.1.0/02:00:00,M10.5.0/02:00:00" $ export TZ PST=UTC-8 / PDT=UTC-7 +Summer time begins on April's first Sunday at 2:00am, +and ends on October's last Sunday at 2:00am. $ hg debugrebuildstate $ echo "a" > a