usleep tests: Avoid failure due to known Cygwin 3.5.3 bug.
[gnulib.git] / tests / test-quotearg.sh
blobe11b66783a1998ebc3b99aec80b57eaec7a0a73d
1 #!/bin/sh
3 # Choose an existing locale. The locale encoding does not matter; see the
4 # comment in test-quotearg.po.
5 if test $LOCALE_FR_UTF8 != none; then
6 locale=$LOCALE_FR_UTF8
7 else
8 if test $LOCALE_FR != none; then
9 locale=$LOCALE_FR
10 else
11 locale=none
15 # Work around a limitation of gettext() on native Windows in gettext 0.18.1:
16 # the locale identifiers in the environment variables LC_ALL etc. have to
17 # be in Unix conventions, not in native Window conventions.
18 if test $locale = French_France.65001; then
19 locale=fr_FR.UTF-8
21 if test $locale = French_France.1252; then
22 locale=fr_FR.CP1252
25 # Work around a bug on Solaris 11 systems with no GNU gettext installed.
26 # See gettext/gettext-tools/tests/init.cfg.
27 localedir="$srcdir/testlocale"
28 if test $locale != none && test $locale != fr; then
29 case "$host_os" in
30 solaris2.11)
31 mkdir -p testlocale
32 cp -R "$srcdir/testlocale/fr" "testlocale/$locale"
33 localedir="testlocale"
35 esac
38 LOCALE=$locale LOCALEDIR="$localedir" \
39 ${CHECKER} ./test-quotearg${EXEEXT}
40 result=$?
42 if test $locale != none && test $locale != fr; then
43 case "$host_os" in
44 solaris2.11)
45 rm -rf "testlocale/$locale"
46 rmdir testlocale 2>/dev/null
48 esac
51 exit $result