* 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-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.
#~ 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; }