78a3448f05
For one, a dependency was missing to avoid
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByName
> standard
> test/source/container/xnameaccess.cxx:30:(anonymous namespace)::SwXAutoTextContainer::testGetByName
> unexpected exception caught
> - Caught: unknown.
>
> (anonymous namespace)::SwXAutoTextContainer::testGetByName finished in: 147ms
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetElementNames
> standard
> (anonymous namespace)::SwXAutoTextContainer::testGetElementNames finished in: 0ms
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testHasByName
> standard
> test/source/container/xnameaccess.cxx:48:(anonymous namespace)::SwXAutoTextContainer::testHasByName
> assertion failed
> - Expression: xNA->hasByName(m_aName)
>
> (anonymous namespace)::SwXAutoTextContainer::testHasByName finished in: 0ms
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetCount
> standard
> test/source/container/xindexaccess.cxx:26:(anonymous namespace)::SwXAutoTextContainer::testGetCount
> equality assertion failed
> - Expected: 3
> - Actual : 1
>
> (anonymous namespace)::SwXAutoTextContainer::testGetCount finished in: 0ms
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByIndex
> standard
> test/source/container/xindexaccess.cxx:32:(anonymous namespace)::SwXAutoTextContainer::testGetByIndex
> equality assertion failed
> - Expected: 3
> - Actual : 1
>
> (anonymous namespace)::SwXAutoTextContainer::testGetByIndex finished in: 0ms
And for another, executing the XAutoTextContainer test code in
SwXAutoTextContainer corrupted instdir/, testInsertNewByName creating a
spurious instdir/share/autotext/en-US/crdbus50Insert.bau, and testRemoveByName
removing instdir/share/autotext/en-US/crdbus50.bau, which caused subsequent runs
of the CppunitTest to fail with
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetCount
> standard
> /home/tdf/lode/jenkins/workspace/lo_tb_master_linux_dbg/test/source/container/xindexaccess.cxx:26:(anonymous namespace)::SwXAutoTextContainer::testGetCount
> equality assertion failed
> - Expected: 3
> - Actual : 4
>
> (anonymous namespace)::SwXAutoTextContainer::testGetCount finished in: 0ms
> [_RUN_____] (anonymous namespace)::SwXAutoTextContainer::testGetByIndex
> standard
> /home/tdf/lode/jenkins/workspace/lo_tb_master_linux_dbg/test/source/container/xindexaccess.cxx:32:(anonymous namespace)::SwXAutoTextContainer::testGetByIndex
> equality assertion failed
> - Expected: 3
> - Actual : 4
>
> (anonymous namespace)::SwXAutoTextContainer::testGetByIndex finished in: 0ms
(<https://ci.libreoffice.org//job/lo_tb_master_linux_dbg/44666/>). So this
commit reverts that part of 7b999ca228
"tdf#45904:
Move _XAutoTextContainer Java tests to C++" for now.
Change-Id: I46387d3fea21706846f2c1ba4c462402f9343fdc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156192
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
111 lines
2.8 KiB
Makefile
111 lines
2.8 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,sw_apitests))
|
|
|
|
$(eval $(call gb_CppunitTest_use_external,sw_apitests,boost_headers))
|
|
|
|
$(eval $(call gb_CppunitTest_use_common_precompiled_header,sw_apitests))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,sw_apitests, \
|
|
sw/qa/api/SwXAutoTextContainer \
|
|
sw/qa/api/SwXBodyText \
|
|
sw/qa/api/SwXBookmark \
|
|
sw/qa/api/SwXBookmarks \
|
|
sw/qa/api/SwXChapterNumbering \
|
|
sw/qa/api/SwXDocumentIndex \
|
|
sw/qa/api/SwXDocumentIndexes \
|
|
sw/qa/api/SwXDocumentIndexMark \
|
|
sw/qa/api/SwXDocumentSettings \
|
|
sw/qa/api/SwXFieldEnumeration \
|
|
sw/qa/api/SwXFrames \
|
|
sw/qa/api/SwXFootnote \
|
|
sw/qa/api/SwXFootnoteProperties \
|
|
sw/qa/api/SwXFootnoteText \
|
|
sw/qa/api/SwXFootnotes \
|
|
sw/qa/api/SwXHeadFootText \
|
|
sw/qa/api/SwXNumberingRules \
|
|
sw/qa/api/SwXParagraphEnumeration \
|
|
sw/qa/api/SwXReferenceMark \
|
|
sw/qa/api/SwXStyleFamilies \
|
|
sw/qa/api/SwXReferenceMarks \
|
|
sw/qa/api/SwXTableCellText \
|
|
sw/qa/api/SwXTextEmbeddedObjects \
|
|
sw/qa/api/SwXTextFrame \
|
|
sw/qa/api/SwXTextField \
|
|
sw/qa/api/SwXTextFieldMasters \
|
|
sw/qa/api/SwXTextFieldTypes \
|
|
sw/qa/api/SwXTextSections \
|
|
sw/qa/api/SwXTextTable \
|
|
sw/qa/api/SwXTextTables \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,sw_apitests, \
|
|
basegfx \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
drawinglayer \
|
|
docmodel \
|
|
editeng \
|
|
for \
|
|
forui \
|
|
i18nlangtag \
|
|
msfilter \
|
|
oox \
|
|
sal \
|
|
salhelper \
|
|
sax \
|
|
sb \
|
|
sw \
|
|
sfx \
|
|
sot \
|
|
svl \
|
|
svt \
|
|
svx \
|
|
svxcore \
|
|
subsequenttest \
|
|
test \
|
|
tl \
|
|
tk \
|
|
ucbhelper \
|
|
unotest \
|
|
utl \
|
|
$(call gb_Helper_optional,SCRIPTING, \
|
|
vbahelper) \
|
|
vcl \
|
|
xo \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,sw_apitests,\
|
|
-I$(SRCDIR)/sw/inc \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_api,sw_apitests,\
|
|
offapi \
|
|
udkapi \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,sw_apitests))
|
|
$(eval $(call gb_CppunitTest_use_vcl,sw_apitests))
|
|
$(eval $(call gb_CppunitTest_use_configuration,sw_apitests))
|
|
|
|
$(eval $(call gb_CppunitTest_use_rdb,sw_apitests,services))
|
|
|
|
$(eval $(call gb_CppunitTest_use_uiconfigs,sw_apitests, \
|
|
svt \
|
|
svx \
|
|
))
|
|
|
|
$(call gb_CppunitTest_get_target,sw_apitests): $(call gb_AllLangPackage_get_target,autotextshare)
|
|
|
|
# vim: set noet sw=4 ts=4:
|