summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-08-17 19:56:44 +0000
committerJim Meyering <jim@meyering.net>2005-08-17 19:56:44 +0000
commitdf23c845d2d2c31eaa17446448aa8630f5971138 (patch)
tree2de2c0bc10d7d0b31f8dd3f03f1802ae3a0f3ee5 /tests
parent147d65828a6b965841295a21091f19f4bed6be0f (diff)
downloadcoreutils-df23c845d2d2c31eaa17446448aa8630f5971138.tar.xz
[neg-secs]: New test for today's strftime.c bug fix.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/date2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/misc/date b/tests/misc/date
index d1329dc0e..13527e1ce 100755
--- a/tests/misc/date
+++ b/tests/misc/date
@@ -192,6 +192,8 @@ my @Tests =
['empty-fmt', '+', {OUT=>"\n"}],
+ ['neg-secs', '-d @-22 +%05s', {OUT=>"-0022\n"}],
+
# Before today's fix, date would print uninitialized data
# to standard output for an out-of-range date:
# $ /p/bin/date -d @$(echo 2^56-1|bc) 2> /dev/null | od -a -N3