summaryrefslogtreecommitdiff
path: root/tests/misc/date
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-04-25 10:29:10 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-04-25 10:29:10 +0000
commitdfef85e7539331fc35abb152c28eaf9b04f2389e (patch)
treea1fae8c2ac6c9600d9ab89a7a19c8c04073df04f /tests/misc/date
parent9f0b99499396d3ad89d98e7e6ba9c2be73271055 (diff)
downloadcoreutils-dfef85e7539331fc35abb152c28eaf9b04f2389e.tar.xz
(relative-3): New test, derived from a bug report by John Thomas McDole.
Diffstat (limited to 'tests/misc/date')
-rwxr-xr-xtests/misc/date4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/date b/tests/misc/date
index 5fca6a0b3..56577b34b 100755
--- a/tests/misc/date
+++ b/tests/misc/date
@@ -177,6 +177,10 @@ my @Tests =
{OUT=>"2000-06-15 09:43:57"},
{ENV => 'TZ=UTC+1'}],
+ # Relative days, no time, across time zones.
+ ['relative-3', "-I -d '2006-04-23 21 days ago'", {OUT=>"2006-04-02"},
+ {ENV=>'TZ=PST8PDT,M4.1.0,M10.5.0'}],
+
# This would infloop (or appear to) prior to coreutils-4.5.5,
# due to a bug in strftime.c.
['wide-fmt', "-d '1999-06-01'", '+%3004Y', {OUT=>'0' x 3000 . "1999"}],