summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilhelm Pflueger <Wilhelm.Pflueger@web.de>2011-02-22 22:33:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-02-23 12:39:04 +0000
commit7a10c5af23a5d1ad295a5812aa1a85487f547254 (patch)
tree459edd3d59ceaa2c31f6435b3c0fed22663b6f7d
parent075e9b99300ddeb2b6d33fd9ddefae07225e06d3 (diff)
Reanimated test sal/qa/rtl/alloc
This was an easy hack. Signed-off-by: Wilhelm Pflueger <Wilhelm.Pflueger@web.de>
-rw-r--r--sal/prj/build.lst1
-rw-r--r--sal/qa/rtl/alloc/rtl_alloc.cxx13
2 files changed, 10 insertions, 4 deletions
diff --git a/sal/prj/build.lst b/sal/prj/build.lst
index 40e5e5c78..ddbc44673 100644
--- a/sal/prj/build.lst
+++ b/sal/prj/build.lst
@@ -25,3 +25,4 @@ sa sal\qa\osl\security nmake - all sa_qa_osl_security sa_cppunittester sa_util N
sa sal\qa\osl\process nmake - all sa_qa_osl_process sa_cppunittester sa_util NULL
sa sal\qa\rtl\strings nmake - all sa_qa_rt_strings sa_cppunittester sa_util NULL
sa sal\qa\rtl\oustringbuffer nmake - all sa_qa_rt_oustringbuffer sa_cppunittester sa_util NULL
+sa sal\qa\rtl\alloc nmake - all sa_qa_rt_alloc sa_cppunittester sa_util NULL
diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx
index cc445284e..a82dc059d 100644
--- a/sal/qa/rtl/alloc/rtl_alloc.cxx
+++ b/sal/qa/rtl/alloc/rtl_alloc.cxx
@@ -32,7 +32,12 @@
// autogenerated file with codegen.pl
#include <rtl/alloc.h>
-#include <testshl/simpleheader.hxx>
+#include <cppunit/TestFixture.h>
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/plugin/TestPlugIn.h>
+
+#include <memory.h>
+#define t_print printf
namespace rtl_alloc
{
@@ -167,8 +172,8 @@ public:
}; // class test
// -----------------------------------------------------------------------------
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(rtl_alloc::Memory, "rtl_alloc");
-CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(rtl_alloc::ZeroMemory, "rtl_alloc");
+CPPUNIT_TEST_SUITE_REGISTRATION(rtl_alloc::Memory);
+CPPUNIT_TEST_SUITE_REGISTRATION(rtl_alloc::ZeroMemory);
} // namespace rtl_alloc
@@ -176,6 +181,6 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(rtl_alloc::ZeroMemory, "rtl_alloc");
// this macro creates an empty function, which will called by the RegisterAllFunctions()
// to let the user the possibility to also register some functions by hand.
-NOADDITIONAL;
+CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */