From 23ce7baa24ca41dc8a5be4a62dc5588fb5769fa9 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 21 Jul 2002 22:54:15 +0000 Subject: [PATCH] Added a very basic test to see, if BRoster cooperates smoothly with the registrar to init its messengers. And yes, it does. :-) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@382 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/registrar/Jamfile | 9 ++++++ .../servers/registrar/RegistrarTest1.cpp | 28 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/tests/servers/registrar/Jamfile create mode 100644 src/tests/servers/registrar/RegistrarTest1.cpp diff --git a/src/tests/servers/registrar/Jamfile b/src/tests/servers/registrar/Jamfile new file mode 100644 index 0000000000..b4094d0115 --- /dev/null +++ b/src/tests/servers/registrar/Jamfile @@ -0,0 +1,9 @@ +SubDir OBOS_TOP src tests servers registrar ; + +UsePublicHeaders app ; + +SimpleTest RegistrarTest1 + : RegistrarTest1.cpp + : libopenbeos.so +; + diff --git a/src/tests/servers/registrar/RegistrarTest1.cpp b/src/tests/servers/registrar/RegistrarTest1.cpp new file mode 100644 index 0000000000..0623a82879 --- /dev/null +++ b/src/tests/servers/registrar/RegistrarTest1.cpp @@ -0,0 +1,28 @@ +// RegistrarTest1.cpp + +#include + +#include + +class TestApp : public BApplication { +public: + TestApp(const char *signature) + : BApplication(signature) + { + } + + ~TestApp() + { + } +}; + +// main +int +main() +{ + TestApp *app = new TestApp("application/x-vnd.OBOS-TestApp1"); + app->Run(); + delete app; + return 0; +} +