diff options
| author | Martin Hořeňovský | 2021-08-03 15:46:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-08-06 11:38:54 +0200 |
| commit | 1b1f3a88bcf3d24ca6027222496c47324e61d0b1 (patch) | |
| tree | 1c68bcfb2b4599748cee99f7c171ef6944e6903d /src/catch2/internal/catch_stream.cpp | |
| parent | 02ab64da2e924ba9dbae3dc3e1f6357041d1b037 (diff) | |
| download | catch3-1b1f3a88bcf3d24ca6027222496c47324e61d0b1.tar.gz | |
Don't debug log empty strings
Diffstat (limited to 'src/catch2/internal/catch_stream.cpp')
| -rw-r--r-- | src/catch2/internal/catch_stream.cpp | 6 |
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 ); + } } }; |