aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-01-14 09:57:59 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-20 15:06:59 +0100
commit2e982a38643dfc869cb91b49d3f44ee271a7062d (patch)
tree9a2788d98911e2055a848307ca9e540fc5162948 /docs/markdown/snippets
parente7c85555751399506e3f967e044f3d327abd3a14 (diff)
downloadmeson-2e982a38643dfc869cb91b49d3f44ee271a7062d.zip
meson-2e982a38643dfc869cb91b49d3f44ee271a7062d.tar.gz
meson-2e982a38643dfc869cb91b49d3f44ee271a7062d.tar.bz2
mtest: collect stdout/stderr even in verbose mode
Using verbose mode dropped stdout/stderr from the logs, because it was not captured. Now that we can easily stick code in the middle of the reading of stdout/stderr, use that to print stdout and stderr on the fly while also capturing them for the logs. The output is line-buffered. As a side effect, this also fixes a possible deadlock due to not using ensure_future around stdo_task and stde_task. In particular: - the stdo_task coroutine would not terminate until the test closed stdo_task - the stde_task coroutine would not start until the stdo_task coroutine finished Therefore, the test could get stuck waiting for its parent to read the contents of stderr, but that would not happen because Meson was still in the stdo_task coroutine.
Diffstat (limited to 'docs/markdown/snippets')
0 files changed, 0 insertions, 0 deletions