Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tools/Versions.cpp
diff options
context:
space:
mode:
authorLeitwolf112026-10-24 14:21:11 +0300
committerLeitwolf112026-10-24 14:21:11 +0300
commit906a47a04fe0be9e7e6769d8cae59b4b1d286460 (patch)
tree9193c87437158c60dbb689868bd3722794839dc2 /tools/Versions.cpp
parente18f19b7dd70c99fbcf2b3fe812ee18dabc92663 (diff)
downloadcatch3-906a47a04fe0be9e7e6769d8cae59b4b1d286460.tar.gz
Send what listeners print at start-up in the worker's greeting
Listeners that print while they are created raced with the first test: the text went through the worker's error stream and could reach the runner after it had given the worker a test, which then claimed it as its own output. The worker now captures Catch2's standard streams while it creates the listeners and starts the run, sends the text in its hello message, and the runner writes it to its standard error. Catch2's stream redirect now remembers the buffer to restore when a redirect starts rather than when it is made, so a stream whose buffer changed in between is restored to the right one.
Diffstat (limited to 'tools/Versions.cpp')
0 files changed, 0 insertions, 0 deletions