sc/qa/extras/scpdfexport.cxx | 6 ++++++ sw/qa/extras/htmlexport/htmlexport2.cxx | 4 ++++ 2 files changed, 10 insertions(+)
New commits: commit e25bb51f64ffbf1e39c1f27d2b9b580cf9f8715c Author: Tor Lillqvist <t...@iki.fi> AuthorDate: Mon Mar 17 14:15:27 2025 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Mar 18 08:35:04 2025 +0100 Avoid test failures with --disable-pdfimport Change-Id: I05b0af5dfff2fa4b12ec1216ca4e9667c0388b72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183040 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sc/qa/extras/scpdfexport.cxx b/sc/qa/extras/scpdfexport.cxx index bd0e8d21747b..2c711c6817cf 100644 --- a/sc/qa/extras/scpdfexport.cxx +++ b/sc/qa/extras/scpdfexport.cxx @@ -229,6 +229,12 @@ void ScPDFExportTest::testPopupRectangleSize_Tdf162955() ScRange aRange(0, 0, 0, 0, 0, 0); exportToPDF(xModel, aRange); + std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get(); + if (!pPDFium) + { + return; + } + // Parse the export result with pdfium. std::unique_ptr<vcl::pdf::PDFiumDocument> pPdfDocument = parsePDFExport(); CPPUNIT_ASSERT_EQUAL(1, pPdfDocument->getPageCount()); diff --git a/sw/qa/extras/htmlexport/htmlexport2.cxx b/sw/qa/extras/htmlexport/htmlexport2.cxx index 75ee544f5875..cd1d9ae8824c 100644 --- a/sw/qa/extras/htmlexport/htmlexport2.cxx +++ b/sw/qa/extras/htmlexport/htmlexport2.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <config_features.h> + #include "htmlmodeltestbase.hxx" #include <memory> @@ -1171,6 +1173,7 @@ CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testReqIF_ExportFormulasAsPDF) }; saveWithParams(aStoreProperties); +#if HAVE_FEATURE_PDFIMPORT // Make sure that the formula is exported as PDF: xmlDocUniquePtr pXmlDoc = WrapReqifFromTempFile(); assertXPath(pXmlDoc, "/reqif-xhtml:html/reqif-xhtml:div/reqif-xhtml:p[2]/reqif-xhtml:object", @@ -1188,6 +1191,7 @@ CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testReqIF_ExportFormulasAsPDF) CPPUNIT_ASSERT_EQUAL(u"pdf_Portable_Document_Format"_ustr, xTypeDetection->queryTypeByDescriptor(descr, true)); +#endif } CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, testReqIF_NoBrClearForImageWrap)