summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-08-19 08:21:23 +0200
committerAkim Demaille <akim.demaille@gmail.com>2021-08-19 08:21:23 +0200
commit3afa9757da056e2dc2abf56b0abb7b4276c030d7 (patch)
tree490243c5c78c4bf1e5627b29ce5f538165c75550 /tests
parent36f37568bac3ac9efb2917c5d68dea50a4a619c3 (diff)
downloadbison-3afa9757da056e2dc2abf56b0abb7b4276c030d7.tar.gz
tests: grep -E is not portable
Reported by Dagobert Michelsen. <https://lists.gnu.org/r/bug-bison/2021-08/msg00008.html> * tests/calc.at: Use $EGREP.
Diffstat (limited to 'tests')
-rw-r--r--tests/calc.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/calc.at b/tests/calc.at
index 831a2b08..11801543 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -970,7 +970,7 @@ AT_JAVA_IF(
[AT_PARSER_CHECK([calc $1 input], 0, [m4_ifvaln(m4_quote($3), [$3])], [stderr])])
AT_LANG_MATCH([c\|c++\|java],
[AT_GLR_IF([],
- [AT_CHECK([grep -c -v -E 'Return for a new token:|LAC:' stderr],
+ [AT_CHECK([$EGREP -c -v 'Return for a new token:|LAC:' stderr],
[ignore],
[m4_n([AT_DEBUG_IF([$4], [0])])])])])
])