[neg-secs]: New test for today's strftime.c bug fix.
authorJim Meyering <jim@meyering.net>
Wed, 17 Aug 2005 19:56:44 +0000 (19:56 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 17 Aug 2005 19:56:44 +0000 (19:56 +0000)
tests/misc/date

index d1329dc..13527e1 100755 (executable)
@@ -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