X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f69577be06770f2039acfd3d694581a8a3806dc7..b5f2d1f3477f19464dbe88f329d2b429ca17455a:/tests/test.cpp?ds=sidebyside 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