[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
instsh2.test failure on Solaris (was: Please report to address@hidden)
From: |
Ralf Wildenhues |
Subject: |
instsh2.test failure on Solaris (was: Please report to address@hidden) |
Date: |
Mon, 3 Mar 2008 23:04:21 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Hello Younes,
* Younes Younes wrote on Mon, Mar 03, 2008 at 11:21:29AM CET:
>
> the test file is instsh2.test
>
> hier is the report
Thanks.
[...]
> /home/younes/built/automake-1.10.1/tests:/usr/local/bin:/usr/ccs/bin:/usr/ucb:/usr/bin:/usr/sfw/bin:/opt/csw/bin:/usr/openwin/bin:/usr/lang/bin:/opt/csw/php5/bin:/home/ini/younes/bin
>
Ah, ok. I suppose this test was run on Solaris, and you have /usr/ucb
early in $PATH. 'touch -t' is POSIX, but not understood by
/usr/ucb/touch, so for that to work, /usr/bin should come before
/usr/ucb.
> === Running test ./instsh2.test
> + pwd /home/younes/built/automake-1.10.1/tests/testSubDir
[...]
> + echo foo + ./install-sh -C file d1 + touch -t 198309271735.59 d1/file
> TZ=UTC0
> usage: touch [-amcf] file ...
> FAIL: instsh2.test
I'm applying this to master and branch-1-10 (the instsh2.test has since
been split up, and the parts your failure is dealing with are in
instsh3.test now), and putting you in THANKS.
Cheers,
Ralf
Skip instsh3.test if `touch -t' does not work.
* tests/instsh3.test: Test for `touch -t', fails with Solaris
/usr/ucb/touch.
* THANKS: Update.
Report by Younes Younes.
diff --git a/tests/instsh3.test b/tests/instsh3.test
index 95b74c7..4ed67b9 100755
--- a/tests/instsh3.test
+++ b/tests/instsh3.test
@@ -20,6 +20,9 @@ required=non-root
. ./defs || exit 1
set -e
+# Solaris /usr/ucb/touch does not accept -t.
+touch -t $old_timestamp foo || exit 77
+
./install-sh -d d1
# Do not change the timestamps when using -C.