Commit b43f378d authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

tests: fix non-portable use of sed

Fixes #428, reported by Etienne Renault.

* tests/core/genltl.test: Do use \? with sed.
parent b0730852
......@@ -24,8 +24,10 @@ set -e
# Make sure the name of each pattern is correctly output by %F.
opts=`genltl --help | sed -n '/=RANGE/{
s/^ *//
s/=RANGE\[\?,RANGE.*/=1,1/p
s/\[\?=RANGE.*/=1/p
s/=RANGE\[,RANGE.*/=1,1/p
s/=RANGE,RANGE.*/=1,1/p
s/\[=RANGE.*/=1/p
s/=RANGE.*/=1/p
}'`
res=`genltl $opts --format="--%F=%L"`
test "$opts" = "$res"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment