From e24ab46c4e6aa075a62b8fd28f27c0b25dabd667 Mon Sep 17 00:00:00 2001 From: ejakowatz Date: Thu, 11 Jul 2002 00:04:38 +0000 Subject: [PATCH] Changes to BLooper tests so that they will work again. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@69 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/app/Jamfile | 2 +- src/tests/kits/app/bhandler/IsWatchedTest.cpp | 2 ++ .../kits/app/blooper/IsMessageWaitingTest.cpp | 9 ++------- .../kits/app/blooper/IsMessageWaitingTest.h | 3 ++- src/tests/kits/app/blooper/Jamfile | 20 +++++++++---------- .../kits/app/blooper/RemoveHandlerTest.cpp | 12 +++-------- .../kits/app/blooper/RemoveHandlerTest.h | 3 ++- 7 files changed, 21 insertions(+), 30 deletions(-) diff --git a/src/tests/kits/app/Jamfile b/src/tests/kits/app/Jamfile index 0faff4e465..4b73d34f79 100644 --- a/src/tests/kits/app/Jamfile +++ b/src/tests/kits/app/Jamfile @@ -1,6 +1,6 @@ SubDir OBOS_TOP src tests kits app ; SubInclude OBOS_TOP src tests kits app bhandler ; -#SubInclude OBOS_TOP src tests kits app blooper ; +SubInclude OBOS_TOP src tests kits app blooper ; #SubInclude OBOS_TOP src tests kits app bmessageQueue ; SubInclude OBOS_TOP src tests kits app bmessenger ; diff --git a/src/tests/kits/app/bhandler/IsWatchedTest.cpp b/src/tests/kits/app/bhandler/IsWatchedTest.cpp index 5068f261ad..e4809bc4a0 100644 --- a/src/tests/kits/app/bhandler/IsWatchedTest.cpp +++ b/src/tests/kits/app/bhandler/IsWatchedTest.cpp @@ -42,7 +42,9 @@ void TIsWatchedTest::IsWatched2() assert(fHandler.IsWatched() == true); fHandler.StopWatching(&Watcher, '1234'); +#ifndef TEST_R5 assert(fHandler.IsWatched() == false); +#endif } //------------------------------------------------------------------------------ Test* TIsWatchedTest::Suite() diff --git a/src/tests/kits/app/blooper/IsMessageWaitingTest.cpp b/src/tests/kits/app/blooper/IsMessageWaitingTest.cpp index a98727a2c8..a47b91e748 100644 --- a/src/tests/kits/app/blooper/IsMessageWaitingTest.cpp +++ b/src/tests/kits/app/blooper/IsMessageWaitingTest.cpp @@ -6,13 +6,8 @@ // Standard Includes ----------------------------------------------------------- // System Includes ------------------------------------------------------------- -#if defined(SYSTEM_TEST) -#include -#include -#else -#include "../../../../lib/application/headers/Looper.h" -#include "../../../../lib/application/headers/MessageQueue.h" -#endif +#include +#include // Project Includes ------------------------------------------------------------ diff --git a/src/tests/kits/app/blooper/IsMessageWaitingTest.h b/src/tests/kits/app/blooper/IsMessageWaitingTest.h index ea04222588..4a933cce71 100644 --- a/src/tests/kits/app/blooper/IsMessageWaitingTest.h +++ b/src/tests/kits/app/blooper/IsMessageWaitingTest.h @@ -13,7 +13,7 @@ // Project Includes ------------------------------------------------------------ // Local Includes -------------------------------------------------------------- -#include "common.h" +#include "../common.h" // Local Defines --------------------------------------------------------------- @@ -22,6 +22,7 @@ class TIsMessageWaitingTest : public TestCase { public: + TIsMessageWaitingTest() {;} TIsMessageWaitingTest(std::string name) : TestCase(name) {;} void IsMessageWaiting1(); diff --git a/src/tests/kits/app/blooper/Jamfile b/src/tests/kits/app/blooper/Jamfile index 712acb8f81..9d3eb504d2 100644 --- a/src/tests/kits/app/blooper/Jamfile +++ b/src/tests/kits/app/blooper/Jamfile @@ -1,13 +1,11 @@ SubDir OBOS_TOP src tests kits app blooper ; -UsePublicHeaders app support ; - -UnitTest BLooperTester : main.cpp - IsMessageWaitingTest.cpp - RemoveHandlerTest.cpp - : kits/app ; - -LinkSharedOSLibs BLooperTester : - libopenbeos.so - be - stdc++.r4 ; +CommonUnitTest BLooperTester + : main.cpp + IsMessageWaitingTest.cpp + RemoveHandlerTest.cpp + : kits app + : libopenbeos.so be stdc++.r4 + : be stdc++.r4 + : app support +; diff --git a/src/tests/kits/app/blooper/RemoveHandlerTest.cpp b/src/tests/kits/app/blooper/RemoveHandlerTest.cpp index 24feeaa5ba..cc92e8c1aa 100644 --- a/src/tests/kits/app/blooper/RemoveHandlerTest.cpp +++ b/src/tests/kits/app/blooper/RemoveHandlerTest.cpp @@ -6,15 +6,9 @@ // Standard Includes ----------------------------------------------------------- // System Includes ------------------------------------------------------------- -#if defined(SYSTEM_TEST) -#include -#include -#include -#else -#include "../../../../lib/application/headers/Handler.h" -#include "../../../../lib/application/headers/Looper.h" -#include "../../../../lib/application/headers/MessageFilter.h" -#endif +#include +#include +#include // Project Includes ------------------------------------------------------------ diff --git a/src/tests/kits/app/blooper/RemoveHandlerTest.h b/src/tests/kits/app/blooper/RemoveHandlerTest.h index 7137b4df6c..9f66d80029 100644 --- a/src/tests/kits/app/blooper/RemoveHandlerTest.h +++ b/src/tests/kits/app/blooper/RemoveHandlerTest.h @@ -13,7 +13,7 @@ // Project Includes ------------------------------------------------------------ // Local Includes -------------------------------------------------------------- -#include "common.h" +#include "../common.h" // Local Defines --------------------------------------------------------------- @@ -22,6 +22,7 @@ class TRemoveHandlerTest : public TestCase { public: + TRemoveHandlerTest() {;} TRemoveHandlerTest(std::string name) : TestCase(name) {;} void RemoveHandler1();