summaryrefslogtreecommitdiff
path: root/sal
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
commitd9bd461b9a842732c4f2aef5939d1123e7d82471 (patch)
tree21216539b3804e039422df6e0497d7fc2abb08ca /sal
parentd7d7e6f8d491e5fc5365edba3d895d66fdc65443 (diff)
Reanimated test sal/qa/rtl/alloc
This was an easy hack. Signed-off-by: Wilhelm Pflueger <Wilhelm.Pflueger@web.de>
Diffstat (limited to 'sal')
-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 40e5e5c78113..ddbc44673a49 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 d0e71c65f129..24dc3b453687 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: */