diff --git a/tests/controls/textctrltest.cpp b/tests/controls/textctrltest.cpp index ef70a2fdc4..90990c0d2b 100644 --- a/tests/controls/textctrltest.cpp +++ b/tests/controls/textctrltest.cpp @@ -88,7 +88,9 @@ private: CPPUNIT_TEST( Style ); CPPUNIT_TEST( FontStyle ); CPPUNIT_TEST( Lines ); +#if wxUSE_LOG CPPUNIT_TEST( LogTextCtrl ); +#endif // wxUSE_LOG CPPUNIT_TEST( LongText ); CPPUNIT_TEST( PositionToCoords ); CPPUNIT_TEST( PositionToCoordsRich ); @@ -119,7 +121,9 @@ private: void Style(); void FontStyle(); void Lines(); +#if wxUSE_LOG void LogTextCtrl(); +#endif // wxUSE_LOG void LongText(); void PositionToCoords(); void PositionToCoordsRich(); @@ -609,6 +613,7 @@ void TextCtrlTestCase::Lines() #endif } +#if wxUSE_LOG void TextCtrlTestCase::LogTextCtrl() { CPPUNIT_ASSERT(m_text->IsEmpty()); @@ -623,6 +628,7 @@ void TextCtrlTestCase::LogTextCtrl() CPPUNIT_ASSERT(!m_text->IsEmpty()); } +#endif // wxUSE_LOG void TextCtrlTestCase::LongText() { diff --git a/tests/log/logtest.cpp b/tests/log/logtest.cpp index 8ab3c692fa..5529fe1d40 100644 --- a/tests/log/logtest.cpp +++ b/tests/log/logtest.cpp @@ -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