summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-12-22 11:15:15 +0000
committerJim Meyering <jim@meyering.net>1999-12-22 11:15:15 +0000
commit621a5a5d61b725fde1701f81e919f1a2af89cab2 (patch)
tree60d1f89e8676c4145358799ed29aad4e9c5ce271 /tests
parent1796cbe0c69c8e984f2b6ef71ab15ae18743a12c (diff)
downloadcoreutils-621a5a5d61b725fde1701f81e919f1a2af89cab2.tar.xz
(regress-1): New test for the above.
Diffstat (limited to 'tests')
-rw-r--r--tests/date/Test.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/date/Test.pm b/tests/date/Test.pm
index 34c9641b2..de13ec290 100644
--- a/tests/date/Test.pm
+++ b/tests/date/Test.pm
@@ -113,6 +113,9 @@ sub test_vector
['risks-1', "-d 'Nov 10 1996' $fmt", {}, "1996-11-10 00:00:00", 0],
+ ['regress-1', "-u -d '1996-11-10 0:00:00 +0' $fmt", {},
+ "1996-11-10 00:00:00", 0],
+
# FIXME: add a lot more...
);
@@ -127,6 +130,10 @@ sub test_vector
$Test::env{'utc-0'} = ['TZ=UTC+4'];
+ # This one would pass if TZ (with any, or even no, value) were in
+ # the environment.
+ $Test::env{'regress-1'} = ['LANG=C'];
+
$Test::env{'utc-1'} = ['TZ=UTC+1'];
$Test::input_via{'utc-1'} = {REDIR => 0};
$Test::input_via{'utc-1a'} = {REDIR => 0};