From 8e8e1cf6c13c369ea36a2fb741eafb5c02afcf12 Mon Sep 17 00:00:00 2001 From: ejakowatz Date: Thu, 29 May 2003 05:25:44 +0000 Subject: [PATCH] The libapptest.so and libapptest_r5.so addons were getting so big they couldn't be loaded anymore (and were causing bdb to crash). So a stub is loaded instead (libappteststub/_r5.so) which links directly against the actual libraries. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3384 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/app/AppKitTestAddon.cpp | 2 +- src/tests/kits/app/AppKitTestStub.cpp | 33 ++++++++++++++++++++++++++ src/tests/kits/app/Jamfile | 8 +++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 src/tests/kits/app/AppKitTestStub.cpp diff --git a/src/tests/kits/app/AppKitTestAddon.cpp b/src/tests/kits/app/AppKitTestAddon.cpp index 97e7a2a257..2db430ad06 100644 --- a/src/tests/kits/app/AppKitTestAddon.cpp +++ b/src/tests/kits/app/AppKitTestAddon.cpp @@ -15,7 +15,7 @@ #include "broster/RosterTest.h" #include "RegistrarThreadManagerTest.h" -BTestSuite* getTestSuite() { +BTestSuite* getTestSuite2() { BTestSuite *suite = new BTestSuite("App"); // ##### Add test suites here ##### diff --git a/src/tests/kits/app/AppKitTestStub.cpp b/src/tests/kits/app/AppKitTestStub.cpp new file mode 100644 index 0000000000..e0213a1078 --- /dev/null +++ b/src/tests/kits/app/AppKitTestStub.cpp @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// AppKitTestStub.cpp +// +//------------------------------------------------------------------------------ + +// Standard Includes ----------------------------------------------------------- + +// System Includes ------------------------------------------------------------- + +// Project Includes ------------------------------------------------------------ +#include +#include + +// Local Includes -------------------------------------------------------------- + +// Local Defines --------------------------------------------------------------- + +// Globals --------------------------------------------------------------------- + + +extern BTestSuite* getTestSuite2(); + +BTestSuite* getTestSuite() { + return getTestSuite2(); +} + +/* + * $Log $ + * + * $Id $ + * + */ + diff --git a/src/tests/kits/app/Jamfile b/src/tests/kits/app/Jamfile index 6a77bf4a87..eb55c0bbf4 100644 --- a/src/tests/kits/app/Jamfile +++ b/src/tests/kits/app/Jamfile @@ -142,6 +142,14 @@ CommonTestLib libapptest.so : app support ; +CommonTestLib libappteststub.so + : AppKitTestStub.cpp + : libapptest.so stdc++.r4 + : libapptest_r5.so stdc++.r4 + : + : +; + SubInclude OBOS_TOP src tests kits app bapplication ; SubInclude OBOS_TOP src tests kits app bclipboard ; SubInclude OBOS_TOP src tests kits app bcursor ;