['empty-fmt', '+', {}, '', 0],
+ # Since coreutils/lib/getdate.y revision 1.96 (post-coreutils-5.3.0),
+ # a command like the following would mistakenly exit nonzero with an
+ # `invalid date ...' diagnostic, but only when run in a time zone for
+ # which that 24-hour range spans a daylight savings time transition.
+ # Unfortunately (for ease of testing), if you set TZ at all, this
+ # failure is not triggered, hence the cross-dst env setting below.
+ ['cross-dst', "--date '2005-03-27 +1 day' +%Y", {}, '2005', 0],
+
# FIXME: add a lot more...
);
$Test::env{'rfc822-1'} = ['LC_ALL=de_DE TZ=UTC0'];
$Test::env{'relative-2'} = ['TZ=UTC+1'];
+ $Test::env{'cross-dst'} = ['no_TZ=1'];
return @tv;
}