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


Hi all,

With <http://cgit.freedesktop.org/libreoffice/core/commit/?id=d996328cd5f46eeed2df0cbd510eda28e2f7cef9> come three changes for CppUnit based tests in the LibO code base:

- The header sal/cppunit.h has been removed (and it was not used much).

- There is a new header sal/precppunit.hxx that should be included in every file (.hxx or .cxx) that includes any cppunit/... headers. What it does at the moment is override CPPUNIT_PLUGIN_EXPORT (see next), but it might get extended in the future. This means that the first headers included into any file (.hxx or .cxx) should now follow the pattern

  [#include "precompiled_XXX.hxx"]
   #include "sal/config.h"
  [#include "sal/precppunit.hxx"]

- The overridden CPPUNIT_PLUGIN_EXPORT exports the cppunitTestPlugIn function via symbol visibility, so there is no longer a need to export it via a map file. (For dmake-based code, that means use VISIBILITY_HIDDEN=TRUE and SHLnUSE_EXPORTS=name instead of SHLnVERSIONMAP=... This feature was also already available with the old sal/cppunit.h, but lots of places in the code still used map files. I changed this to exclusively use symbol visibility now.)

-Stephan

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.