]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a test failure.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Sep 2003 10:17:00 +0000 (10:17 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:57 +0000 (12:10 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-bash

index b1a9c307ba76319aaaa24a3eeaf77d91dcfae384..985e6e17a5a056c5dd9a6679426aa1ed85138112 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-08  Bruno Haible  <bruno@clisp.org>
+
+       * lang-bash: Avoid test failure when bash is built without i18n
+       support.
+
 2003-09-03  Bruno Haible  <bruno@clisp.org>
 
        * xgettext-30: New file.
index fc662151ee075819062bd7e8f468fb6c2dbd679e..76459a5868a22566580d7ffb693411e741b47763 100755 (executable)
@@ -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