sw/qa/extras/docbookexport/docbookexport.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit 34ca24d35a65de3ba9cdac25de390473ef369376 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Feb 28 08:40:35 2024 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Feb 28 10:03:52 2024 +0100 CppunitTest_sw_docbookexport: rework to avoid DECLARE_DOCBOOKEXPORT_TEST() No need go via Writer-specific macros. Change-Id: I68619a8cc610d7aa2d14657adaf8a7806060ced5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164079 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/qa/extras/docbookexport/docbookexport.cxx b/sw/qa/extras/docbookexport/docbookexport.cxx index 0c9ce2392223..d454427df880 100644 --- a/sw/qa/extras/docbookexport/docbookexport.cxx +++ b/sw/qa/extras/docbookexport/docbookexport.cxx @@ -19,10 +19,10 @@ public: {} }; -#define DECLARE_DOCBOOKEXPORT_TEST(TestName, filename) DECLARE_SW_EXPORT_TEST(TestName, filename, nullptr, DocbookExportTest) - -DECLARE_DOCBOOKEXPORT_TEST(testsimple, "simple.docx") +CPPUNIT_TEST_FIXTURE(DocbookExportTest, testsimple) { + createSwDoc("simple.docx"); + save(mpFilter); xmlDocUniquePtr pDoc = parseXml(maTempFile); CPPUNIT_ASSERT(pDoc); @@ -30,8 +30,10 @@ DECLARE_DOCBOOKEXPORT_TEST(testsimple, "simple.docx") } /* the test actually should crash with this file */ -DECLARE_DOCBOOKEXPORT_TEST(testtdf91095, "tdf91095.docx") +CPPUNIT_TEST_FIXTURE(DocbookExportTest, testtdf91095) { + createSwDoc("tdf91095.docx"); + save(mpFilter); xmlDocUniquePtr pDoc = parseXml(maTempFile); CPPUNIT_ASSERT(pDoc); }