[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-7.4: make check fails under Solaris 8
From: |
Pádraig Brady |
Subject: |
Re: coreutils-7.4: make check fails under Solaris 8 |
Date: |
Wed, 13 May 2009 13:13:02 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Christophe LYON wrote:
> Hello,
>
> I have just tried coreutils-7.4 on a Solaris machine (built with
> GCC-4.2.0).
>
> "make check" fails on misc/date-next-dow:
> date-next-dow: test dow2: stdout mismatch, comparing dow2.O (actual) and
> dow2.1 (expected)
> *** dow2.O Tue May 12 15:06:24 2009
> --- dow2.1 Tue May 12 15:06:24 2009
> ***************
> *** 1 ****
> ! 2009-05-12
> --- 1 ----
> ! %F
> next-dow...
> date-next-dow: test next-dow: stdout mismatch, comparing next-dow.O
> (actual) and next-dow.1 (expected)
> *** next-dow.O Tue May 12 15:06:24 2009
> --- next-dow.1 Tue May 12 15:06:24 2009
> ***************
> *** 1 ****
> ! 2009-05-19
> --- 1 ----
> ! %F
>
>
> Is this feature relying on something not available under Solaris 8, or
> should it actually pass?
I'm guessing the Solaris 8 system strftime() (called by Perl)
doesn't support %F, whereas `date +%F` is using a gnulib replacement?
This can be replaced I think with "%Y-%m-%d", as in the diff below.
cheers,
Pádraig.
diff --git a/tests/misc/date-next-dow b/tests/misc/date-next-dow
index 0bc94e1..8fdab02 100755
--- a/tests/misc/date-next-dow
+++ b/tests/misc/date-next-dow
@@ -41,9 +41,9 @@ 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