autfilt: diagnose non-existant files

* src/bin/autfilt.cc: Catch exception.
* src/tgbatest/hoaparse.test: Test it.
This commit is contained in:
Alexandre Duret-Lutz 2014-11-25 08:59:26 +01:00
parent e7e21ae58f
commit a9fa7d33c5
2 changed files with 13 additions and 2 deletions

View file

@ -717,3 +717,7 @@ input:4.7-242: unclosed string
input:4.7-242: syntax error, unexpected end of file, expecting string
autfilt: failed to read automaton from input
EOF
expecterr non-existant<<EOF
autfilt: Cannot open file non-existant
EOF