]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Fix testsuite failures with bash 5.2.
authorXi Ruoyao <xry111@xry111.site>
Fri, 30 Sep 2022 15:36:03 +0000 (11:36 -0400)
committerZack Weinberg <zackw@panix.com>
Fri, 30 Sep 2022 15:37:13 +0000 (11:37 -0400)
commit412166e185c00d6eacbe67dfcb0326f622ec4020
treed181ae13c201d8eaf825cdb3fb44ca9a0df06ecb
parent55dfa2377602e743d00b726344422acc3116d859
Fix testsuite failures with bash 5.2.

Bash v5.2 includes several new optimizations to the number of
subshells used for various constructs; as a side effect, the value of
SHLVL is less stable than it used to be.  Add SHLVL to the list of
built-in shell variables with unstable values, to be ignored when
checking for inappropriate differences to the shell environment
before and after a macro invocation / between two configure runs.

Problem and solution reported by Xi Ruoyao in
https://lists.gnu.org/archive/html/autoconf/2022-09/msg00015.html
Problem also reported by Bruce Dubbs in
https://lists.gnu.org/archive/html/bug-autoconf/2022-09/msg00010.html

* tests/local.at (_AT_CHECK_ENV, AT_CONFIG_CMP): Ignore changes in
  value of SHLVL.
Copyright-paperwork-exempt: yes
tests/local.at