diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-10-11 06:36:17 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-10-11 06:53:45 +0200 |
commit | 0c56c195e0f469b2bb93c975622513b383b97316 (patch) | |
tree | 935e3ca5b9a41da33b48037c5297a3a05a5b76b4 /tests/regression.at | |
parent | 3dd2ae4415841c6296b5dcaadec91c722eecbbca (diff) | |
download | bison-0c56c195e0f469b2bb93c975622513b383b97316.tar.gz |
tests: be really robust to Perl missing
My previous tests (with ./configure PERL=false) have been fooled by
configure, that managed to find perl anyway. This time, I ran this on
a Fedora in Docker, without Perl.
* tests/calc.at, tests/diagnostics.at, tests/headers.at,
* tests/input.at, tests/local.at, tests/named-refs.at,
* tests/output.at, tests/regression.at, tests/skeletons.at,
* tests/synclines.at, tests/torture.at: Don't require Perl.
Diffstat (limited to 'tests/regression.at')
-rw-r--r-- | tests/regression.at | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regression.at b/tests/regression.at index 9bfaf67b..76f7a580 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -1352,18 +1352,18 @@ AT_CHECK([[grep 'syntax error,' stderr.txt]], [[0]], # Check number of default reductions in inconsistent states to be sure # syntax error is detected before unnecessary reductions are performed. -AT_CHECK([[$PERL -0777 -ne 'print s/inconsistent default reduction//g;' \ +AT_CHECK([["$PERL" -0777 -ne 'print s/inconsistent default reduction//g;' \ < stdout.txt || exit 77]], [[0]], [[14]]) # Check number of default reductions in consistent states to be sure # it is performed before the syntax error is detected. -AT_CHECK([[$PERL -0777 -ne 'print s/\bconsistent default reduction//g;' \ +AT_CHECK([["$PERL" -0777 -ne 'print s/\bconsistent default reduction//g;' \ < stdout.txt || exit 77]], [[0]], [[2]]) ]AT_C_IF([[ # Check number of reallocs to be sure reallocated memory isn't somehow # lost between LAC invocations. - AT_CHECK([[$PERL -0777 -ne 'print s/\(realloc//g;' < stderr.txt \ + AT_CHECK([["$PERL" -0777 -ne 'print s/\(realloc//g;' < stderr.txt \ || exit 77]], [[0]], [[3]]) ]])[ |