]> git.saurik.com Git - wxWidgets.git/commitdiff
don't run vsnprintf() test if we're using the system version, there is nothing we...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 22:11:51 +0000 (22:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 30 May 2008 22:11:51 +0000 (22:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/vsnprintf.cpp
tests/test.cpp

index 61b9abae3f00f5ca234038e614cabfad2952161f..ca6d276d2bf4c67346be70a9d6c37a831699f558 100644 (file)
@@ -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
index d65ec1fbfa1144fd4e6ebdf39a6fc036ec0061c9..406e6dcd391db61686231c44c81cf285319b483a 100644 (file)
@@ -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");