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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp
diff options
context:
space:
mode:
authorMartin Jeřábek2020-09-04 12:27:16 +0200
committerMartin Hořeňovský2020-09-07 11:53:45 +0200
commit8851e779cf43e206c8eeb24229e26d8f6608e3cf (patch)
tree179b1778a05dba516fb55d1ed5ef0c59e442d3a8 /tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp
parent2d4f8ac8e625cd70eb3b3eae873914382a5348c7 (diff)
downloadcatch3-8851e779cf43e206c8eeb24229e26d8f6608e3cf.tar.gz
console colour: fix unintended colouring of user's stderr on POSIX
At some places, the colour reset code is printed after a newline. Since the default output buffering to console is line-based, the reset code is not actually written out. If messages from user code are printed to stderr (different stream, same console), they are printed before the colour reset code, and thus they are coloured. Explicitly flushing the stream after writing the colour escape code solves this.
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp')
0 files changed, 0 insertions, 0 deletions