for test crash

f41
Caolán McNamara 2 years ago
parent 4a186faf2f
commit bf0bc89c64

@ -0,0 +1,28 @@
From 4fdafc02cc58762eb89e80f3031df7535fac4caa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Fri, 3 Mar 2023 12:29:02 +0000
Subject: [PATCH] don't crash with --disable-pdfium
Change-Id: I8a02e9c5367a5fc73674963d31c48a6114e92299
---
sw/qa/core/text/text.cxx | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx
index 9ffae51f175f..0ddc9a0885d8 100644
--- a/sw/qa/core/text/text.cxx
+++ b/sw/qa/core/text/text.cxx
@@ -681,6 +681,10 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testContentControlPDF)
CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testContentControlPlaceholderPDF)
{
+ std::shared_ptr<vcl::pdf::PDFium> pPDFium = vcl::pdf::PDFiumLibrary::get();
+ if (!pPDFium)
+ return;
+
// Given a file with a content control, in placeholder mode:
createSwDoc();
SwDoc* pDoc = getSwDoc();
--
2.39.1

@ -265,6 +265,7 @@ Patch1: 0001-disble-tip-of-the-day-dialog-by-default.patch
Patch2: 0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch
# backported
Patch3: 0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch
Patch4: 0001-don-t-crash-with-disable-pdfium.patch
# TODO investigate these
Patch4: 0001-aarch64-failing-here.patch
Patch5: 0001-include-filename-if-the-test-fails.patch

Loading…
Cancel
Save