From: Daiki Ueno Date: Tue, 29 Apr 2014 09:18:38 +0000 (+0900) Subject: tests: Add work around for newer Bison version used in autopoint test X-Git-Tag: v0.19~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7dfa25549d46ccfbf0c1da549abb3ebd180b94;p=thirdparty%2Fgettext.git tests: Add work around for newer Bison version used in autopoint test * autopoint-3 (gettext_datadir): Don't regenerate intl/plural.c. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 527eba536..f641273ea 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2014-04-29 Daiki Ueno + + * autopoint-3 (gettext_datadir): Don't regenerate intl/plural.c. + 2014-04-21 Daiki Ueno tests: Don't run system dependent test by default diff --git a/gettext-tools/tests/autopoint-3 b/gettext-tools/tests/autopoint-3 index 8ea619be8..c3f1261d7 100755 --- a/gettext-tools/tests/autopoint-3 +++ b/gettext-tools/tests/autopoint-3 @@ -115,6 +115,11 @@ ${AUTOMAKE} -a -c >/dev/null 2>/dev/null || exit 1 ${CONFIG_SHELL} ./configure --with-included-gettext >/dev/null 2>/dev/null \ || exit 1 +# Workaround for 0.18.3 or earlier: Processing intl/plural.y with +# Bison 3.0.1 or later generates a wrong code. Use pre-generated +# intl/plural.c in that case. +test -f intl/plural.c && touch intl/plural.c + ${MAKE} >/dev/null 2>/dev/null || exit 1 exit 0