From: Bruno Haible Date: Sun, 15 Jan 2012 17:13:11 +0000 (+0100) Subject: Avoid a test failure on Solaris 11. X-Git-Tag: v0.18.2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0512c3de7cf042c96d04e9424900fa7a1c500a47;p=thirdparty%2Fgettext.git Avoid a test failure on Solaris 11. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index df01d7a20..f5062e0cc 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,8 @@ +2012-01-15 Bruno Haible + + Avoid test failure on Solaris 11. + * msgfilter-sr-latin-1: Skip the test if the PO file is incorrect. + 2011-06-02 Bruno Haible * 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 1a5d5fb6d..a8c0eac43 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