]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Filter out warning message.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Jul 2005 10:34:14 +0000 (10:34 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:38 +0000 (12:12 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/msgcat-stringtable-1

index 1719fac5ee499240c1d64f7fc44cf6d44feb7f33..57c62fd4cdc72e3af504add97dc4539590c7355d 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-16  Bruno Haible  <bruno@clisp.org>
+
+        * msgcat-stringtable-1: Filter out warning message from output.
+
 2005-05-27  Bruno Haible  <bruno@clisp.org>
 
        * msgcat-stringtable-1: Expect \v or \a escape sequence in output.
index 4cf1f1d3282578cbf86c9249522dfddfcdeebff4..64bf7e5adb223f634be95fe5a6c7731659339438 100755 (executable)
@@ -27,11 +27,14 @@ is completely ignored, even if in "quotes", or \escape characters, etc.
 "hoe322070.element";
 EOF
 
-tmpfiles="$tmpfiles mcat-s-1.out"
+tmpfiles="$tmpfiles mcat-s-1.out mcat-s-1.err"
 rm -f mcat-s-1.out
 : ${MSGCAT=msgcat}
-${MSGCAT} --stringtable-input mcat-s-1.in -o mcat-s-1.out
-test $? = 0 || { rm -fr $tmpfiles; exit 1; }
+LC_MESSAGES=C LC_ALL= \
+${MSGCAT} --stringtable-input mcat-s-1.in -o mcat-s-1.out >mcat-s-1.err 2>&1
+result=$?
+cat mcat-s-1.err | grep -v 'msgcat: internationalized messages'
+test $result = 0 || { rm -fr $tmpfiles; exit 1; }
 
 tmpfiles="$tmpfiles mcat-s-1.ok"
 cat << \EOF > mcat-s-1.ok