diff options
author | David Tardon <dtardon@redhat.com> | 2010-10-30 17:50:59 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-10-30 17:50:59 +0200 |
commit | 96295f0000107bca98f444413ce5879027b28e49 (patch) | |
tree | e27f85dbba8004a497f05713890abf9aa9bd3d80 /tools/test | |
parent | 5b4d4af3e8bc3b5fb07bceecefc2a47d8e4b8b18 (diff) |
fix building of tests
Diffstat (limited to 'tools/test')
-rw-r--r-- | tools/test/export.map | 2 | ||||
-rw-r--r-- | tools/test/makefile.mk | 1 | ||||
-rw-r--r-- | tools/test/tests.cxx | 16 |
3 files changed, 7 insertions, 12 deletions
diff --git a/tools/test/export.map b/tools/test/export.map index 7321bbca16ad..3308588ef6f8 100644 --- a/tools/test/export.map +++ b/tools/test/export.map @@ -27,7 +27,7 @@ UDK_3_0_0 { global: - registerAllTestFunction; + cppunitTestPlugIn; local: *; diff --git a/tools/test/makefile.mk b/tools/test/makefile.mk index ab2cfd8e6676..573dd91f736d 100644 --- a/tools/test/makefile.mk +++ b/tools/test/makefile.mk @@ -46,7 +46,6 @@ SHL1OBJS= \ SHL1TARGET= tests SHL1STDLIBS= $(SALLIB) \ $(TOOLSLIB) \ - $(TESTSHL2LIB) \ $(CPPUNITLIB) SHL1IMPLIB= i$(SHL1TARGET) diff --git a/tools/test/tests.cxx b/tools/test/tests.cxx index 66d2ac50b352..a814fb2fea83 100644 --- a/tools/test/tests.cxx +++ b/tools/test/tests.cxx @@ -31,12 +31,13 @@ #include "precompiled_tools.hxx" // autogenerated file with codegen.pl -#include <testshl/simpleheader.hxx> +#include <cppunit/TestFixture.h> +#include <cppunit/extensions/HelperMacros.h> +#include <cppunit/plugin/TestPlugIn.h> + #include <rtl/math.hxx> #include <tools/fract.hxx> -#include <stdio.h> - namespace tools { @@ -115,14 +116,9 @@ public: }; // ----------------------------------------------------------------------------- -CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(tools::FractionTest, "FractionTest"); +CPPUNIT_TEST_SUITE_REGISTRATION(FractionTest); } // namespace tools - -// ----------------------------------------------------------------------------- - -// 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: */ |