]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
date: test against bug#50115
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2022 21:46:44 +0000 (13:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Feb 2022 21:47:07 +0000 (13:47 -0800)
* tests/misc/date.pl: Add test.

tests/misc/date.pl

index e9de8e453b11729b5b363c2ceeff7feb9d4b914e..ef7080e33465515c5e7fd022ddc15e735954ca71 100755 (executable)
@@ -301,6 +301,9 @@ my @Tests =
      # https://bugs.gnu.org/34608
      ['date-century-plus', '-d @0 +.%+4C.', {OUT => '.+019.'}],
 
+     # https://bugs.gnu.org/50115
+     ['date-epoch-minus-1', '-u -d "1970-12-31T23:59:59+00:00 - 1 year"',
+      {OUT => 'Wed Dec 31 23:59:59 UTC 1969'}],
 
      # Military time zones, new behavior (since 8.32)
      # https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html