Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index



From c594cb187f978e2fcd836920432360ada6439364 Mon Sep 17 00:00:00 2001
Message-Id: <c594cb187f978e2fcd836920432360ada6439364.1298410536.git.Wilhelm.Pflueger@web.de>
From: Wilhelm Pflueger <Wilhelm.Pflueger@web.de>
Date: Tue, 22 Feb 2011 22:33:33 +0100
Subject: [PATCH] Reanimated test sal/qa/rtl/alloc

This was an easy hack.

Signed-off-by: Wilhelm Pflueger <Wilhelm.Pflueger@web.de>
---
 sal/prj/build.lst              |    1 +
 sal/qa/rtl/alloc/rtl_alloc.cxx |   13 +++++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/sal/prj/build.lst b/sal/prj/build.lst
index 40e5e5c..ddbc446 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 cc44528..a82dc05 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: */
-- 
1.7.0.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.