Fix building tests when configured with --disable-log
Add missing wxUSE_LOG checks to wxTextCtrl test and disable wxLog test entirely when wxUSE_LOG==0. Closes https://github.com/wxWidgets/wxWidgets/pull/1703
This commit is contained in:
committed by
Vadim Zeitlin
parent
b8d689422f
commit
09e0b3927b
@@ -23,6 +23,8 @@
|
||||
|
||||
#include "wx/scopeguard.h"
|
||||
|
||||
#if wxUSE_LOG
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#include "wx/msw/wrapwin.h"
|
||||
#else
|
||||
@@ -391,3 +393,5 @@ void LogTestCase::NoWarnings()
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL( "If", m_log->GetLog(wxLOG_Error) );
|
||||
}
|
||||
|
||||
#endif // wxUSE_LOG
|
||||
|
Reference in New Issue
Block a user