autfilt: fix incorrect diagnostic
* bin/autfilt.cc (OPT_KEEP_STATES): Mention the correct option. * tests/core/maskkeep.test: Test for it. * NEWS: Mention the bug.
This commit is contained in:
parent
7a56ae958e
commit
da0dd4c534
3 changed files with 12 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2015, 2016 Laboratoire de Recherche et Développement
|
||||
# Copyright (C) 2015, 2016, 2021 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -109,5 +109,9 @@ run 0 autfilt --keep-states=1,2,0 input1 -H >output
|
|||
diff output expect4
|
||||
|
||||
# Errors
|
||||
run 2 autfilt --keep-states=a3 input1
|
||||
run 2 autfilt --keep-states=3-2 input1
|
||||
run 2 autfilt --keep-states=a3 input1 2> error
|
||||
cat error
|
||||
grep 'failed to parse' error
|
||||
run 2 autfilt --keep-states=3-2 input1 2> error
|
||||
cat error
|
||||
grep 'non-negative: --keep-states' error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue