ltlgrind: improve error message when formulas are missing
The error message, inherited from ltl2tgba, used to say "No formula to translate", but "translate" isn't appropriate here. * bin/common_finput.cc, bin/common_finput.hh (check_no_formula): Allow "translate" to be changed. * bin/ltlgrind.cc: Change it. * tests/core/ltlgrind.test: Test it.
This commit is contained in:
parent
3693bbab08
commit
436e5a2d7f
4 changed files with 13 additions and 5 deletions
|
|
@ -200,3 +200,11 @@ EOF
|
|||
|
||||
ltlgrind -f 'a U b' -m 999999999999999999999999999 2>err && exit 1
|
||||
grep 'too large' err
|
||||
|
||||
# The following message appears only if run from a tty.
|
||||
if (: > /dev/tty) >/dev/null 2>&1 ; then
|
||||
ltlgrind </dev/tty 2>err && exit 1
|
||||
grep 'No formula to mutate' err
|
||||
fi
|
||||
|
||||
:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue