mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: be robust to old Perl versions on Cygwin
Reported by Denis Excoffier. https://lists.gnu.org/archive/html/bug-bison/2019-11/msg00008.html. * tests/output.at: Be sure to remove back up files.
This commit is contained in:
@@ -47,8 +47,12 @@ done
|
||||
foo: '0' {};
|
||||
]])
|
||||
|
||||
# There is not AT_DATA_UNQUOTED.
|
||||
AT_PERL_REQUIRE([-pi -e 's{\$at_dir}'"{$at_group_dir}g" $1])
|
||||
# There is no AT_DATA_UNQUOTED.
|
||||
if $EGREP 'at_dir' $1 >/dev/null; then
|
||||
AT_PERL_REQUIRE([-pi -e 's{\$at_dir}'"{$at_group_dir}g" $1])
|
||||
# On Cygwin, up to Perl 5.28, 'perl -pi' left a foo.bak file.
|
||||
AT_CHECK([rm -f $1.bak])
|
||||
fi
|
||||
|
||||
|
||||
AT_BISON_CHECK([$3 $1], [$5], [], [ignore])[
|
||||
|
||||
Reference in New Issue
Block a user