mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: restore the tests on -Werror
When run as /bin/sh, Bash sets the shell variable POSIXLY_CORRECT to y. The test suite checks for the envvar POSIXLY_CORRECT to turn of some tests not supported in POSIX mode. Restore these tests. Reported by the Hydra build farm, from Rob Vermaas. * tests/local.at (AT_BISON_CHECK_WARNINGS_): Check the envvar POSIXLY_CORRECT, not the shell variable.
This commit is contained in:
@@ -462,10 +462,14 @@ m4_define([AT_BISON_CHECK_WARNINGS],
|
|||||||
[m4_null_if([$2], [AT_BISON_CHECK_WARNINGS_($@)])])])
|
[m4_null_if([$2], [AT_BISON_CHECK_WARNINGS_($@)])])])
|
||||||
|
|
||||||
m4_define([AT_BISON_CHECK_WARNINGS_],
|
m4_define([AT_BISON_CHECK_WARNINGS_],
|
||||||
[[# Defining POSIXLY_CORRECT causes bison to complain if options
|
[[# Defining POSIXLY_CORRECT causes bison to complain if options are
|
||||||
# are added after the grammar file name, so skip these checks
|
# added after the grammar file name, so skip these checks in that
|
||||||
# in that case.
|
# case.
|
||||||
if test -z "${POSIXLY_CORRECT+set}"; then
|
#
|
||||||
|
# Don't just check if $POSIXLY_CORRECT is set, as Bash, when launched
|
||||||
|
# as /bin/sh, sets the shell variable POSIXLY_CORRECT to y, but not
|
||||||
|
# the environment variable.
|
||||||
|
if env | grep '^POSIXLY_CORRECT=' >/dev/null; then :; else
|
||||||
]AT_SAVE_SPECIAL_FILES[
|
]AT_SAVE_SPECIAL_FILES[
|
||||||
|
|
||||||
# To avoid expanding it repeatedly, store specified stdout.
|
# To avoid expanding it repeatedly, store specified stdout.
|
||||||
|
|||||||
Reference in New Issue
Block a user