> 2021-01-01  Bruno Haible  <br...@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  <br...@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


Reply via email to