From 1b1f3a88bcf3d24ca6027222496c47324e61d0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 3 Aug 2021 15:46:53 +0200 Subject: [PATCH] Don't debug log empty strings --- src/catch2/internal/catch_stream.cpp | 6 ++++-- 1 file 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 ); + } } };