+2010-05-26 Bruno Haible <bruno@clisp.org>
+
+ Avoid test suite failures on NetBSD 5.0.
+ * msgfilter-1: Skip the test if the 'fold' program trims trailing
+ spaces.
+ * msgfilter-3: Likewise.
+
2010-05-23 Bruno Haible <bruno@clisp.org>
msggrep: Fix interpretation of '$' in regular expressions.
rm -fr $tmpfiles; exit 77
}
+# Some fold programs (like NetBSD 5.0) remove trailing spaces when wrapping.
+echo ab cd | fold -b -s -w 3 | grep ' ' >/dev/null || {
+ echo "Skipping test: fold program trims trailing spaces"
+ rm -fr $tmpfiles; exit 77
+}
+
# Some fold programs (like HP-UX) insert a newline at the end, if the last
# line was not terminated with a newline and the -s option was given.
foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c`
rm -fr $tmpfiles; exit 77
}
+# Some fold programs (like NetBSD 5.0) remove trailing spaces when wrapping.
+echo ab cd | fold -b -s -w 3 | grep ' ' >/dev/null || {
+ echo "Skipping test: fold program trims trailing spaces"
+ rm -fr $tmpfiles; exit 77
+}
+
# Some fold programs (like HP-UX) insert a newline at the end, if the last
# line was not terminated with a newline and the -s option was given.
foldoutputcount=`echo $ac_n "abc$ac_c" | fold -b -s -w 20 | wc -c`