]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Fix "broken pipe" error in msgfilter-7
authorDaiki Ueno <ueno@gnu.org>
Fri, 6 Feb 2015 03:26:43 +0000 (12:26 +0900)
committerDaiki Ueno <ueno@gnu.org>
Fri, 6 Feb 2015 03:27:02 +0000 (12:27 +0900)
* msgfilter-7: Eat up filter input to avoid EPIPE in the parent
msgfilter process, which was exposed on AIX 5.
Reported by Michael Felt.

gettext-tools/tests/ChangeLog
gettext-tools/tests/msgfilter-7

index bc82ccaa66e3fb543abc7d0f08dec6433e09a5e1..380b937a96affb3c8e81e099248803568961befa 100644 (file)
@@ -1,3 +1,10 @@
+2015-02-06  Daiki Ueno  <ueno@gnu.org>
+
+       tests: Fix "broken pipe" error in msgfilter-7
+       * msgfilter-7: Eat up filter input to avoid EPIPE in the parent
+       msgfilter process, which was exposed on AIX 5.
+       Reported by Michael Felt.
+
 2015-02-05  Alex Henrie  <alexhenrie24@gmail.com>  (tiny change)
 
        * xgettext-13: New file.
index 8f4dbae82904f1f827ab9c50afae506fde145d14..791441bf22459a8c080dd26b165a99547ad39a8d 100755 (executable)
@@ -54,9 +54,19 @@ msgstr ""
 #~ msgstr "das einen verheirateten Mann liebt"
 EOF
 
+cat <<\EOF > mf-test7.sh
+#! /bin/sh
+
+# Eat up filter input to avoid EPIPE in the parent process.
+cat > /dev/null
+
+echo testing
+EOF
+chmod +x mf-test7.sh
+
 : ${MSGFILTER=msgfilter}
 LC_ALL=C ${MSGFILTER} -i mfi-test7.po -o mfi-test7.out \
-      echo testing >mfi-test7.err 2>&1
+      ./mf-test7.sh >mfi-test7.err 2>&1
 result=$?
 cat mfi-test7.err | grep -v 'warning: Locale charset' | grep -v '^ '
 test $result = 0 || { exit 1; }