From: Bruno Haible Date: Mon, 8 Sep 2003 10:17:00 +0000 (+0000) Subject: Avoid a test failure. X-Git-Tag: v0.13~269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e04d2192ff1e117ea26fccceef9de05903f9475d;p=thirdparty%2Fgettext.git Avoid a test failure. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index b1a9c307b..985e6e17a 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2003-09-08 Bruno Haible + + * lang-bash: Avoid test failure when bash is built without i18n + support. + 2003-09-03 Bruno Haible * xgettext-30: New file. diff --git a/gettext-tools/tests/lang-bash b/gettext-tools/tests/lang-bash index fc662151e..76459a586 100755 --- a/gettext-tools/tests/lang-bash +++ b/gettext-tools/tests/lang-bash @@ -104,8 +104,13 @@ case `bash -c 'echo $BASH_VERSION'` in *) rm -fr $tmpfiles; exit 77;; esac -tmpfiles="$tmpfiles prog.ok prog.out" -: ${DIFF=diff} +tmpfiles="$tmpfiles prog.nok prog.ok prog.out" +# Expected result when bash is built without i18n support. +cat <<\EOF > prog.nok +'Your command, please?', asked the waiter. +2 morceaux de gateau +EOF +# Expected result when bash is built with i18n support. cat <<\EOF > prog.ok «Votre commande, s'il vous plait», dit le garçon. 2 morceaux de gateau @@ -113,6 +118,8 @@ EOF : ${LOCALE_FR=fr_FR} LANGUAGE= LC_ALL=$LOCALE_FR bash ./prog.sh 2 > prog.out || exit 1 +: ${DIFF=diff} +${DIFF} prog.nok prog.out > /dev/null && { rm -fr $tmpfiles; exit 77; } ${DIFF} prog.ok prog.out || exit 1 rm -fr $tmpfiles