]> git.saurik.com Git - wxWidgets.git/commitdiff
fix compilation with cppunit 1.9 (which doesn't have stdCOut()) and some harmless...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Nov 2008 15:51:09 +0000 (15:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Nov 2008 15:51:09 +0000 (15:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/test.cpp

index 89f7307fd455b9e78dd5183f502164a1ed256c0b..cc84f279253fa7207dab7922a47d4b37aecb59b6 100644 (file)
 #endif
 
 #include "wx/beforestd.h"
+#ifdef __VISUALC__
+    #pragma warning(disable:4100)
+#endif
 #include <cppunit/TestListener.h>
+#ifdef __VISUALC__
+    #pragma warning(default:4100)
+#endif
 #include <cppunit/Test.h>
 #include <cppunit/TestResult.h>
 #include "wx/afterstd.h"
@@ -34,7 +40,8 @@ using CppUnit::TestSuite;
 using CppUnit::TestFactoryRegistry;
 
 
-// Displays the test name. This allow for quick investigation on which test hangs
+// Displays the test name before starting to execute it: this helps with
+// diagnosing where exactly does a test crash or hang when/if it does.
 class DetailListener : public CppUnit::TestListener
 {
 public:
@@ -46,7 +53,7 @@ public:
 
     virtual void startTest(CppUnit::Test *test)
     {
-        CppUnit::stdCOut() << test->getName () << " ";
+        std::cout << test->getName () << " ";
         m_watch.Start();
     }
 
@@ -54,8 +61,8 @@ public:
     {
         m_watch.Pause();
         if ( m_timing )
-            CppUnit::stdCOut() << " (in "<< m_watch.Time() << " ms )";
-        CppUnit::stdCOut() << "\n";
+            std::cout << " (in "<< m_watch.Time() << " ms )";
+        std::cout << "\n";
     }
 
 protected :