diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-08-30 17:08:23 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-08-30 17:16:18 +0200 |
commit | e432619d11a11a2b547a79bc6fa8ceb83dbe6067 (patch) | |
tree | 96fa5df39c57b9961dc9074ceda43c2d9dc43178 | |
parent | a1b7fef045124971053edb0e6d570d0e15cb04f5 (diff) | |
download | bison-e432619d11a11a2b547a79bc6fa8ceb83dbe6067.tar.gz |
tests: beware of sed portability issues
Reported by David Laxer <davidl@softintel.com>.
https://lists.gnu.org/r/bug-bison/2020-08/msg00027.html
* tests/output.at: Don't use + with sed.
While at it, fix a quotation problem hidden by the use of '#'.
-rw-r--r-- | tests/output.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/output.at b/tests/output.at index 60267c2d..5af1e914 100644 --- a/tests/output.at +++ b/tests/output.at @@ -759,7 +759,7 @@ AT_TEST([x1], ]) # Check the CPP guard and Doxyen comments. -AT_CHECK([sed -ne 's/#line [0-9]\+ "/#line "/p;/INCLUDED/p;/\\file/{p;n;p;}' out/include/ast/loc.hh], [], +AT_CHECK([[sed -ne 's/#line [0-9][0-9]* "/#line "/p;/INCLUDED/p;/\\file/{p;n;p;}' out/include/ast/loc.hh]], [], [[ ** \file bar/include/ast/loc.hh ** Define the x1::location class. #ifndef YY_YY_BAR_INCLUDE_AST_LOC_HH_INCLUDED @@ -771,7 +771,7 @@ AT_CHECK([sed -ne 's/#line [0-9]\+ "/#line "/p;/INCLUDED/p;/\\file/{p;n;p;}' out #endif // !YY_YY_BAR_INCLUDE_AST_LOC_HH_INCLUDED ]]) -AT_CHECK([sed -ne 's/^#line [0-9]\+ "/#line "/p;/INCLUDED/p;/\\file/{p;n;p;}' out/x1.hh], [], +AT_CHECK([[sed -ne 's/^#line [0-9][0-9]* "/#line "/p;/INCLUDED/p;/\\file/{p;n;p;}' out/x1.hh]], [], [[ ** \file bar/x1.hh ** Define the x1::parser class. #ifndef YY_YY_BAR_X1_HH_INCLUDED |