[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quotearg tests: Avoid test failures on Solaris 11
From: |
Bruno Haible |
Subject: |
Re: quotearg tests: Avoid test failures on Solaris 11 |
Date: |
Mon, 04 Jan 2021 04:03:25 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) |
> 2021-01-01 Bruno Haible <bruno@clisp.org>
>
> quotearg tests: Avoid test failures on Solaris 11.
> * modules/quotearg-tests (Makefile.am): Set host_os in
> TESTS_ENVIRONMENT.
> * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
> directory that contains the .mo file.
This patch worked for Solaris OpenIndiana and Solaris OmniOS, but not on
Solaris 11.3. On this platform, the 'cp' program does not support the '-a'
option. 'cp -pR' comes closest.
2021-01-03 Bruno Haible <bruno@clisp.org>
quotearg tests: Avoid test failures on Solaris 11.3.
* tests/test-quotearg.sh: Copy the fr/ directory using 'cp -R', not
'cp -a'.
diff --git a/tests/test-quotearg.sh b/tests/test-quotearg.sh
index b997867..e11b667 100755
--- a/tests/test-quotearg.sh
+++ b/tests/test-quotearg.sh
@@ -29,7 +29,7 @@ if test $locale != none && test $locale != fr; then
case "$host_os" in
solaris2.11)
mkdir -p testlocale
- cp -a "$srcdir/testlocale/fr" "testlocale/$locale"
+ cp -R "$srcdir/testlocale/fr" "testlocale/$locale"
localedir="testlocale"
;;
esac