bin: fix handling for --output & --format with LTL outputs

* bin/common_output.cc: Set the output stream for LTL formats.
* tests/core/serial.test: Add a test case about this issue that also
improve the covering of the previous patch about saving file
descriptors.
This commit is contained in:
Alexandre Duret-Lutz 2023-07-26 21:33:36 +02:00
parent 7f1a33cc61
commit 0923f8efe2
3 changed files with 18 additions and 1 deletions

3
NEWS
View file

@ -35,6 +35,9 @@ New in spot 2.11.5.dev (not yet released)
where thousands of different filenames can be created failed with
"Too many open files". (Issue #534)
- Using --format=... on a tool that output formulas would force
the output on standard output, even when --output was given.
New in spot 2.11.5 (2023-04-20)