Files
loongoffice/xmloff/CppunitTest_xmloff_text.mk
Michael Stahl 4db18506b4 xmloff: work around LD_LIBRARY_PATH breaking odfvalidator
Validator calls ResourceBundle.getBundle("com.sun.msv.reader.Messages")
which can't find the com/sun/msv/reader/Messages.properties in its jar.

bootstrapfixture.cxx:241:Assertion
Test name: testBibliographyLocalUrl::TestBody
forced failure
- /lo/master/schema/libreoffice/OpenDocument-v1.3+libreoffice-manifest-schema.rng[-1,-1]:  Error: Can't find bundle for base name com.sun.msv.reader.Messages, locale en_US

This is triggered by gb_CppunitTest_CPPTESTPRECOMMAND.

No idea how this happens, or why it started to happen sometime during
the last ~4 weeks, but propagating the same workaround of commit
e854abe076155fc085b56549ced50b3ee9a095d2 to more tests seems to fix it.

Change-Id: Iaef2b41f81c4a659e66cfb7a40f7b1a4517552c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120322
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2021-08-11 18:36:36 +02:00

50 lines
1.4 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,xmloff_text))
$(eval $(call gb_CppunitTest_use_externals,xmloff_text,\
boost_headers \
))
$(eval $(call gb_CppunitTest_add_exception_objects,xmloff_text, \
xmloff/qa/unit/text \
))
$(eval $(call gb_CppunitTest_use_libraries,xmloff_text, \
comphelper \
cppu \
embobj \
sal \
test \
unotest \
utl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,xmloff_text))
$(eval $(call gb_CppunitTest_use_ure,xmloff_text))
$(eval $(call gb_CppunitTest_use_vcl,xmloff_text))
$(eval $(call gb_CppunitTest_use_rdb,xmloff_text,services))
$(eval $(call gb_CppunitTest_use_custom_headers,xmloff_text,\
officecfg/registry \
))
$(eval $(call gb_CppunitTest_use_configuration,xmloff_text))
$(eval $(call gb_CppunitTest_add_arguments,xmloff_text, \
-env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
))
# vim: set noet sw=4 ts=4: