]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
define ATTRIBUTE_PRINTF(m,n) and not just ATTRIBUTE_PRINTF as nothing when the compil...
[wxWidgets.git] / tests / test.cpp
index e6861bee35cf7f314e4f7c0fab4bf992eb7e5c41..38c9175f9bd5903d6704d7bcc2359a09b0cb007d 100644 (file)
@@ -27,6 +27,7 @@ using CppUnit::Test;
 using CppUnit::TestSuite;
 using CppUnit::TestFactoryRegistry;
 using CppUnit::TextUi::TestRunner;
+using CppUnit::CompilerOutputter;
 
 using std::string;
 using std::vector;
@@ -69,6 +70,14 @@ 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
+
     return wxAppConsole::OnInit();
 };
 
@@ -131,6 +140,8 @@ int TestApp::OnRun()
             runner.addTest(test.release());
     }
 
+    runner.setOutputter(new CompilerOutputter(&runner.result(), cout));
+
 #if wxUSE_LOG
     // Switch off logging unless --verbose
     bool verbose = wxLog::GetVerbose();