]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a test failure on Solaris 11.
authorBruno Haible <bruno@clisp.org>
Sun, 15 Jan 2012 17:13:11 +0000 (18:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 18 Feb 2012 21:28:04 +0000 (22:28 +0100)
gettext-tools/tests/ChangeLog
gettext-tools/tests/msgfilter-sr-latin-1

index df01d7a2003bfd7cad6dc0172f656db67735fd55..f5062e0cc8605593825996c7e9a7dcbe08a9d540 100644 (file)
@@ -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
index 1a5d5fb6d773fdbc3d2e16062bcb16c8bdd39cb1..a8c0eac43a10fa27f08d3d633d29fba5260c6b67 100755 (executable)
@@ -308,6 +308,13 @@ msgstr ""
 "Óîáè÷à¼åíè äèðåêòîðè¼óì çà òðàæå\9cå: %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