From c6b3b4a39c479b2edef35265d80a438d344846bf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 17 Apr 2022 18:35:34 +0200 Subject: [PATCH] Make the warning in DynamicLibraryTestCase actually visible Using wxLogWarning() doesn't work as logs are suppressed by default, but using CATCH WARN() macro does work. --- tests/misc/dynamiclib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/misc/dynamiclib.cpp b/tests/misc/dynamiclib.cpp index a976f0c768..8db9f254ba 100644 --- a/tests/misc/dynamiclib.cpp +++ b/tests/misc/dynamiclib.cpp @@ -60,8 +60,8 @@ void DynamicLibraryTestCase::Load() if ( !wxFileName::Exists(LIB_NAME) ) { - wxLogWarning("Shared library \"%s\" doesn't exist, " - "skipping DynamicLibraryTestCase::Load() test.", LIB_NAME); + WARN("Shared library \"" << wxString(LIB_NAME) << "\" doesn't exist, " + "skipping DynamicLibraryTestCase::Load() test."); return; } #else