diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2024-02-28 08:40:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-02-28 10:03:52 +0100 |
commit | 34ca24d35a65de3ba9cdac25de390473ef369376 (patch) | |
tree | d76822e1749edc1f09f72ac01d9502232c992454 | |
parent | e8487bedb20a429565b4a0e4bd2d6806cc603b7f (diff) |
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 <vmiklos@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | sw/qa/extras/docbookexport/docbookexport.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
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); } |