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:
@@ -1,6 +1,6 @@
|
|||||||
SubDir OBOS_TOP src tests kits app ;
|
SubDir OBOS_TOP src tests kits app ;
|
||||||
|
|
||||||
SubInclude OBOS_TOP src tests kits app bhandler ;
|
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 bmessageQueue ;
|
||||||
SubInclude OBOS_TOP src tests kits app bmessenger ;
|
SubInclude OBOS_TOP src tests kits app bmessenger ;
|
||||||
|
|||||||
@@ -42,7 +42,9 @@ void TIsWatchedTest::IsWatched2()
|
|||||||
assert(fHandler.IsWatched() == true);
|
assert(fHandler.IsWatched() == true);
|
||||||
|
|
||||||
fHandler.StopWatching(&Watcher, '1234');
|
fHandler.StopWatching(&Watcher, '1234');
|
||||||
|
#ifndef TEST_R5
|
||||||
assert(fHandler.IsWatched() == false);
|
assert(fHandler.IsWatched() == false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
Test* TIsWatchedTest::Suite()
|
Test* TIsWatchedTest::Suite()
|
||||||
|
|||||||
@@ -6,13 +6,8 @@
|
|||||||
// Standard Includes -----------------------------------------------------------
|
// Standard Includes -----------------------------------------------------------
|
||||||
|
|
||||||
// System Includes -------------------------------------------------------------
|
// System Includes -------------------------------------------------------------
|
||||||
#if defined(SYSTEM_TEST)
|
#include <Looper.h>
|
||||||
#include <be/app/Looper.h>
|
#include <MessageQueue.h>
|
||||||
#include <be/app/MessageQueue.h>
|
|
||||||
#else
|
|
||||||
#include "../../../../lib/application/headers/Looper.h"
|
|
||||||
#include "../../../../lib/application/headers/MessageQueue.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Project Includes ------------------------------------------------------------
|
// Project Includes ------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
// Project Includes ------------------------------------------------------------
|
// Project Includes ------------------------------------------------------------
|
||||||
|
|
||||||
// Local Includes --------------------------------------------------------------
|
// Local Includes --------------------------------------------------------------
|
||||||
#include "common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
// Local Defines ---------------------------------------------------------------
|
// Local Defines ---------------------------------------------------------------
|
||||||
|
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
class TIsMessageWaitingTest : public TestCase
|
class TIsMessageWaitingTest : public TestCase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
TIsMessageWaitingTest() {;}
|
||||||
TIsMessageWaitingTest(std::string name) : TestCase(name) {;}
|
TIsMessageWaitingTest(std::string name) : TestCase(name) {;}
|
||||||
|
|
||||||
void IsMessageWaiting1();
|
void IsMessageWaiting1();
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
SubDir OBOS_TOP src tests kits app blooper ;
|
SubDir OBOS_TOP src tests kits app blooper ;
|
||||||
|
|
||||||
UsePublicHeaders app support ;
|
CommonUnitTest BLooperTester
|
||||||
|
: main.cpp
|
||||||
UnitTest BLooperTester : main.cpp
|
IsMessageWaitingTest.cpp
|
||||||
IsMessageWaitingTest.cpp
|
RemoveHandlerTest.cpp
|
||||||
RemoveHandlerTest.cpp
|
: kits app
|
||||||
: kits/app ;
|
: libopenbeos.so be stdc++.r4
|
||||||
|
: be stdc++.r4
|
||||||
LinkSharedOSLibs BLooperTester :
|
: app support
|
||||||
libopenbeos.so
|
;
|
||||||
be
|
|
||||||
stdc++.r4 ;
|
|
||||||
|
|||||||
@@ -6,15 +6,9 @@
|
|||||||
// Standard Includes -----------------------------------------------------------
|
// Standard Includes -----------------------------------------------------------
|
||||||
|
|
||||||
// System Includes -------------------------------------------------------------
|
// System Includes -------------------------------------------------------------
|
||||||
#if defined(SYSTEM_TEST)
|
#include <Handler.h>
|
||||||
#include <be/app/Handler.h>
|
#include <Looper.h>
|
||||||
#include <be/app/Looper.h>
|
#include <MessageFilter.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
|
|
||||||
|
|
||||||
// Project Includes ------------------------------------------------------------
|
// Project Includes ------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
// Project Includes ------------------------------------------------------------
|
// Project Includes ------------------------------------------------------------
|
||||||
|
|
||||||
// Local Includes --------------------------------------------------------------
|
// Local Includes --------------------------------------------------------------
|
||||||
#include "common.h"
|
#include "../common.h"
|
||||||
|
|
||||||
// Local Defines ---------------------------------------------------------------
|
// Local Defines ---------------------------------------------------------------
|
||||||
|
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
class TRemoveHandlerTest : public TestCase
|
class TRemoveHandlerTest : public TestCase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
TRemoveHandlerTest() {;}
|
||||||
TRemoveHandlerTest(std::string name) : TestCase(name) {;}
|
TRemoveHandlerTest(std::string name) : TestCase(name) {;}
|
||||||
|
|
||||||
void RemoveHandler1();
|
void RemoveHandler1();
|
||||||
|
|||||||
Reference in New Issue
Block a user