ltl2tgba, randaut: better error reporting

* src/bin/ltl2tgba.cc, src/bin/randaut.cc: Catch exceptions
in main loop.
* src/tgbatest/ltl2tgba.test, src/tgbatest/randaut.test: Test
errors with unknown --dot argument.
This commit is contained in:
Alexandre Duret-Lutz 2015-01-04 11:24:31 +01:00
parent 5497bef3d0
commit 4d4c5d807b
4 changed files with 28 additions and 7 deletions

View file

@ -68,3 +68,6 @@ diff out expected
$randaut -n 5 --stats='name: "%F-%L-%s-%c-%e"' a >out2
diff out2 expected
$randaut -n 5 --dot=@ a 2>stderr && exit 1
grep 'randaut: unknown option.*@' stderr