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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-08-03 15:46:53 +0200
committerMartin Hořeňovský2021-08-06 11:38:54 +0200
commit1b1f3a88bcf3d24ca6027222496c47324e61d0b1 (patch)
tree1c68bcfb2b4599748cee99f7c171ef6944e6903d /src
parent02ab64da2e924ba9dbae3dc3e1f6357041d1b037 (diff)
downloadcatch3-1b1f3a88bcf3d24ca6027222496c47324e61d0b1.tar.gz
Don't debug log empty strings
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_stream.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_stream.cpp b/src/catch2/internal/catch_stream.cpp
index 8b954c15..38919f8f 100644
--- a/src/catch2/internal/catch_stream.cpp
+++ b/src/catch2/internal/catch_stream.cpp
@@ -64,8 +64,10 @@ namespace Detail {
struct OutputDebugWriter {
- void operator()( std::string const&str ) {
- writeToDebugConsole( str );
+ void operator()( std::string const& str ) {
+ if ( !str.empty() ) {
+ writeToDebugConsole( str );
+ }
}
};