diff --git a/tests/strings/vsnprintf.cpp b/tests/strings/vsnprintf.cpp index 61b9abae3f..ca6d276d2b 100644 --- a/tests/strings/vsnprintf.cpp +++ b/tests/strings/vsnprintf.cpp @@ -19,6 +19,8 @@ #pragma hdrstop #endif +#if wxUSE_WXVSNPRINTF + #ifndef WX_PRECOMP #include "wx/wx.h" #include "wx/wxchar.h" @@ -549,3 +551,5 @@ void VsnprintfTestCase::Miscellaneous() DoMisc(5, wxT("%%%%%"), 6, wxT("%%%%%%%%%%")); DoMisc(6, wxT("%%%%12"), 7, wxT("%%%%%%%%%d"), 12); } + +#endif // wxUSE_WXVSNPRINTF diff --git a/tests/test.cpp b/tests/test.cpp index d65ec1fbfa..406e6dcd39 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -78,13 +78,6 @@ bool TestApp::OnInit() cout << "Test program for wxWidgets\n" << "build: " << WX_BUILD_OPTIONS_SIGNATURE << std::endl; -#if !wxUSE_WXVSNPRINTF - cout << "\n"; - cout << "WARNING: VsnprintfTestCase will test the system vsnprintf() function\n"; - cout << " instead of the wxWidgets wxVsnprintf_ implementation!" << std::endl; - cout << "\n"; -#endif - #if wxUSE_GUI // create a hidden parent window to be used as parent for the GUI controls new wxFrame(NULL, wxID_ANY, "Hidden wx test frame");