]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use ERR_SUBST to get around fact that the diagnostic
authorJim Meyering <jim@meyering.net>
Mon, 15 Aug 2005 13:03:57 +0000 (13:03 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 Aug 2005 13:03:57 +0000 (13:03 +0000)
you get on a system with 32-bit time_t is not the same as
the one you get for a system where it's 64 bits wide:
- date: time 72057594037927935 is out of range
+ date: invalid date `@72057594037927935'

tests/misc/date

index 1f7bb58dfab31276b027fa83c869299c8ea45b9a..17b6c48d024910554f4664a8b0376ba03c863cf1 100755 (executable)
@@ -199,7 +199,8 @@ my @Tests =
      # 0000003
      ['uninit-64', '-d @72057594037927935',
       {OUT=>''},
-      {ERR => "date: invalid date `\@72057594037927935'\n"},
+      {ERR_SUBST => 's/.*//'},
+      {ERR => "\n"},
       {EXIT => 1},
      ],
     );