From 6d9407fec40d21e8442e8affdc3dd23a9a9b1aa0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Nov 2008 15:51:09 +0000 Subject: [PATCH] fix compilation with cppunit 1.9 (which doesn't have stdCOut()) and some harmless warnings (which probably were fixed in newer cppunit version too) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/test.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/test.cpp b/tests/test.cpp index 89f7307..cc84f27 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -21,7 +21,13 @@ #endif #include "wx/beforestd.h" +#ifdef __VISUALC__ + #pragma warning(disable:4100) +#endif #include +#ifdef __VISUALC__ + #pragma warning(default:4100) +#endif #include #include #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 : -- 2.7.4