summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-05-15 07:50:35 +0100
committerPádraig Brady <P@draigBrady.com>2009-05-15 15:46:11 +0100
commitbba5fed6ba2a21313d1a59b146ce6df39b37473d (patch)
tree350d82c9300f1ffa9e65aab76133f5d065a55b27 /tests/misc
parentfc9fdd18b35826cfb51858c98abfe8b1f048ce47 (diff)
downloadcoreutils-bba5fed6ba2a21313d1a59b146ce6df39b37473d.tar.xz
tests: fix date-next-dow failure on older systems
* 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.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/date-next-dow5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/misc/date-next-dow b/tests/misc/date-next-dow
index 0bc94e17d..0809c65d0 100755
--- a/tests/misc/date-next-dow
+++ b/tests/misc/date-next-dow
@@ -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