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

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

Fixes #247.

* bin/ Here.
* tests/core/genltl.test: Make sure %F always return a correct pattern
* NEWS: Mention the bug.
parent fe3b86b3
......@@ -23,6 +23,9 @@ New in spot (not yet released)
- In "lenient" mode the parser would fail to recover from
a missing closing brace.
- The output of 'genltl --r-left=1 --r-right=1 --format=%F'
had typos.
Backward-incompatible changes:
- spot::acc_cond::mark_t::operator bool() has been marked as
......@@ -250,8 +250,8 @@ const char* const class_name[LAST_CLASS - FIRST_CLASS] =
......@@ -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/^ *//
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
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