genltl: fix %F for --r-left and --r-right

Fixes #247.

* bin/genltl.cc: Here.
* tests/core/genltl.test: Make sure %F always return a correct pattern
name..
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2017-03-22 14:06:02 +01:00
parent fe3b86b306
commit 4518724a5b
3 changed files with 13 additions and 2 deletions

View file

@ -21,6 +21,14 @@
. ./defs
set -e
# Make sure the name of each pattern is correctly output by %F.
opts=`genltl --help | sed -n '/=RANGE/{
s/^ *//
s/[=[].*/=1/p
}'`
res=`genltl $opts --format="--%F=%L"`
test "$opts" = "$res"
run 0 genltl --dac=1..5 --eh=1..5 --pos --neg --format="%F:%L %f" >output
cat >expected <<EOF
dac-patterns:1 G!p0