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:
Lauri Nurmi
2020-01-10 10:14:06 +02:00
committed by Vadim Zeitlin
parent b8d689422f
commit 09e0b3927b
2 changed files with 10 additions and 0 deletions

View File

@@ -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