summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-01-15 18:13:11 +0100
committerBruno Haible <bruno@clisp.org>2012-02-18 22:28:04 +0100
commit0512c3de7cf042c96d04e9424900fa7a1c500a47 (patch)
tree70a8daec765f10d5b22236224e1c1862a1ec3fab /gettext-tools
parent3b39b40717ccd9e863cf7fa7549073b559ba2369 (diff)
downloadexternal_gettext-0512c3de7cf042c96d04e9424900fa7a1c500a47.zip
external_gettext-0512c3de7cf042c96d04e9424900fa7a1c500a47.tar.gz
external_gettext-0512c3de7cf042c96d04e9424900fa7a1c500a47.tar.bz2
Avoid a test failure on Solaris 11.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/tests/ChangeLog5
-rwxr-xr-xgettext-tools/tests/msgfilter-sr-latin-17
2 files changed, 12 insertions, 0 deletions
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index df01d7a..f5062e0 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-15 Bruno Haible <bruno@clisp.org>
+
+ Avoid test failure on Solaris 11.
+ * msgfilter-sr-latin-1: Skip the test if the PO file is incorrect.
+
2011-06-02 Bruno Haible <bruno@clisp.org>
* xgettext-python-1: Update expected result after linebreaking in
diff --git a/gettext-tools/tests/msgfilter-sr-latin-1 b/gettext-tools/tests/msgfilter-sr-latin-1
index 1a5d5fb..a8c0eac 100755
--- a/gettext-tools/tests/msgfilter-sr-latin-1
+++ b/gettext-tools/tests/msgfilter-sr-latin-1
@@ -308,6 +308,13 @@ msgstr ""
"Уобичајени директоријум за тражење: %s\n"
EOF
+# On Solaris 11, the mfi-srl-1.po has a wrong contents. Apparently the handling
+# of here documents in /bin/sh is too buggy. Skip the test in this case.
+head -n 1 mfi-srl-1.po | grep Serbian > /dev/null || {
+ echo "Skipping test: /bin/sh is too buggy"
+ rm -fr $tmpfiles; exit 77
+}
+
tmpfiles="$tmpfiles mfi-srl-1.tmp mfi-srl-1.out"
: ${MSGFILTER=msgfilter}
${MSGFILTER} -i mfi-srl-1.po -o mfi-srl-1.tmp recode-sr-latin