wxUSE_LOG fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,11 +129,18 @@ int TestApp::OnRun()
|
|||||||
runner.addTest(test.release());
|
runner.addTest(test.release());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_LOG
|
||||||
// Switch off logging unless --verbose
|
// Switch off logging unless --verbose
|
||||||
wxLog::EnableLogging(wxLog::GetVerbose());
|
wxLog::EnableLogging(wxLog::GetVerbose());
|
||||||
|
#endif // wxUSE_LOG
|
||||||
|
|
||||||
return m_list || runner.run("", false, true, !wxLog::GetVerbose()) ?
|
return m_list || runner.run("", false, true,
|
||||||
EXIT_SUCCESS : EXIT_FAILURE;
|
#if wxUSE_LOG
|
||||||
|
!wxLog::GetVerbose()
|
||||||
|
#else
|
||||||
|
true
|
||||||
|
#endif // wxUSE_LOG
|
||||||
|
) ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// List the tests
|
// List the tests
|
||||||
|
Reference in New Issue
Block a user