From 86ca2b4cdaeb6d0495a6b176169e5e5a51995380 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 20 Jul 2004 17:18:49 +0000 Subject: [PATCH] wxUSE_LOG fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/test.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index 040ed7eeda..1990698b1d 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -129,11 +129,18 @@ int TestApp::OnRun() runner.addTest(test.release()); } +#if wxUSE_LOG // Switch off logging unless --verbose wxLog::EnableLogging(wxLog::GetVerbose()); - - return m_list || runner.run("", false, true, !wxLog::GetVerbose()) ? - EXIT_SUCCESS : EXIT_FAILURE; +#endif // wxUSE_LOG + + return m_list || runner.run("", false, true, +#if wxUSE_LOG + !wxLog::GetVerbose() +#else + true +#endif // wxUSE_LOG + ) ? EXIT_SUCCESS : EXIT_FAILURE; } // List the tests -- 2.45.2