From 17e23c0cb92c591e6f0dfd334bfe7b0085526b5e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 3 May 2011 23:31:24 +0000 Subject: [PATCH] No changes, just slightly simplify wxFileSystemWatcher unit test. CheckResult() method of the test event handler doesn't need to return anything, it uses CPPUNIT_ASSERTs and related macros inside it to check that everything is expected. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/fswatcher/fswatchertest.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/fswatcher/fswatchertest.cpp b/tests/fswatcher/fswatchertest.cpp index ed82680061..e75a1ccbe4 100644 --- a/tests/fswatcher/fswatchertest.cpp +++ b/tests/fswatcher/fswatchertest.cpp @@ -248,7 +248,7 @@ public: break; case 2: // actual test - CPPUNIT_ASSERT(CheckResult()); + CheckResult(); Exit(); break; @@ -325,7 +325,7 @@ public: tested = true; } - virtual bool CheckResult() + virtual void CheckResult() { CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() ); @@ -356,8 +356,6 @@ public: CPPUNIT_ASSERT_EQUAL(expected.GetPath(), e->GetPath()); CPPUNIT_ASSERT_EQUAL(expected.GetNewPath(), e->GetNewPath()); - - return true; } virtual void GenerateEvent() = 0;