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
This commit is contained in:
ejakowatz 2002-07-11 00:04:38 +00:00
parent 0022ddd9d6
commit e24ab46c4e
7 changed files with 21 additions and 30 deletions

View File

@ -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 ;

View File

@ -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()

View File

@ -6,13 +6,8 @@
// Standard Includes -----------------------------------------------------------
// System Includes -------------------------------------------------------------
#if defined(SYSTEM_TEST)
#include <be/app/Looper.h>
#include <be/app/MessageQueue.h>
#else
#include "../../../../lib/application/headers/Looper.h"
#include "../../../../lib/application/headers/MessageQueue.h"
#endif
#include <Looper.h>
#include <MessageQueue.h>
// Project Includes ------------------------------------------------------------

View File

@ -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();

View File

@ -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
;

View File

@ -6,15 +6,9 @@
// Standard Includes -----------------------------------------------------------
// System Includes -------------------------------------------------------------
#if defined(SYSTEM_TEST)
#include <be/app/Handler.h>
#include <be/app/Looper.h>
#include <be/app/MessageFilter.h>
#else
#include "../../../../lib/application/headers/Handler.h"
#include "../../../../lib/application/headers/Looper.h"
#include "../../../../lib/application/headers/MessageFilter.h"
#endif
#include <Handler.h>
#include <Looper.h>
#include <MessageFilter.h>
// Project Includes ------------------------------------------------------------

View File

@ -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();