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


On 09/28/2012 01:03 AM, Matúš Kukan wrote:
I've tried --enable-telepathy again and found out that the unit test
does not work now.
After 
http://cgit.freedesktop.org/libreoffice/core/commit/?id=4917f0ceb2a7b1bb3ba878373f71f38d156278af
I am getting:
- Exception while getting config.ini url: null process service factory
It's from tubes/qa/test_manager.cxx :
utl::LocalFileHelper::ConvertPhysicalNameToURL

That ConvertPhysicalNameToURL apparently internally calls comphelper::getProcessServiceFactory to obtain the process service factory; what recently changed with <http://cgit.freedesktop.org/libreoffice/core/commit/?id=2a32bf29b98403872235f880e91b1c08cd3d7f68> "Make getProcessComponentContext/ServiceFactory throw instead of returning null" is that it throws now when the factory is unset (which it should never be).

The way CppUnit tests should get the factory set is via the unobootstrapprotector that is enabled with gb_CppunitTest_use_ure (cf. solenv/gbuild/CppunitTest.mk). What is unclear to me is whether that also requires that your test fixture is derived from test::BootstrapFixtureBase (unotest/bootstrapfixturebase.hxx) or whether CppUnit::TestFixture suffices.

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.