]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix date-next-dow failure on older systems
authorPádraig Brady <P@draigBrady.com>
Fri, 15 May 2009 06:50:35 +0000 (07:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 15 May 2009 14:46:11 +0000 (15:46 +0100)
* tests/misc/date-next-dow: In the strftime call use %Y-%m-%d
rather than the newer %F equivalent which is not available
on Solaris 8 for example.

tests/misc/date-next-dow

index 0bc94e17db633db545a2ea8b3da30640195a0507..0809c65d0cb3404b0cb23a8fc2a07daf9335f165 100755 (executable)
@@ -41,9 +41,10 @@ my @Tests =
      # Running "date -d mon +%a" on a Monday must print Mon.
      ['dow',  "-d $wday_str +%a", {OUT => ucfirst $wday_str}],
      # It had better be the same date, too.
-     ['dow2', "-d $wday_str +%F", {OUT => strftime("%F", @d)}],
+     ['dow2', "-d $wday_str +%Y-%m-%d", {OUT => strftime("%Y-%m-%d", @d)}],
 
-     ['next-dow', "-d 'next $wday_str' +%F", {OUT => strftime("%F", @d_week)}],
+     ['next-dow', "-d 'next $wday_str' +%Y-%m-%d",
+      {OUT => strftime("%Y-%m-%d", @d_week)}],
     );
 
 # Append "\n" to each OUT=> RHS if the expected exit value is either