From 05b5a45f9653c0c825cc838265c0accf991c1640 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 May 2008 22:11:51 +0000 Subject: [PATCH] don't run vsnprintf() test if we're using the system version, there is nothing we can do about its failures then anyhow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/strings/vsnprintf.cpp | 4 ++++ tests/test.cpp | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) 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");