diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:52:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 16:52:12 +0000 |
commit | 974c21ad33bfa1d93d5ae795556d35ca7eb36e68 (patch) | |
tree | 1a0d7c0258aadfcd993c4bffa454bcf117b382cf /debian/patches/work-around-expired-certificiate-in-test.diff | |
parent | Adding upstream version 1:7.0.4. (diff) | |
download | libreoffice-974c21ad33bfa1d93d5ae795556d35ca7eb36e68.tar.xz libreoffice-974c21ad33bfa1d93d5ae795556d35ca7eb36e68.zip |
Adding debian version 1:7.0.4-4+deb11u8.debian/1%7.0.4-4+deb11u8
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/work-around-expired-certificiate-in-test.diff')
-rw-r--r-- | debian/patches/work-around-expired-certificiate-in-test.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/work-around-expired-certificiate-in-test.diff b/debian/patches/work-around-expired-certificiate-in-test.diff new file mode 100644 index 000000000..f4f87dba4 --- /dev/null +++ b/debian/patches/work-around-expired-certificiate-in-test.diff @@ -0,0 +1,24 @@ +diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx +index 1898d3f1377f..be3d9ebd3253 100644 +--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx ++++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx +@@ -2829,7 +2829,8 @@ void DesktopLOKTest::testInsertCertificate_PEM_ODT() + } + + int nState = pDocument->m_pDocumentClass->getSignatureState(pDocument); +- CPPUNIT_ASSERT_EQUAL(int(1), nState); ++ // OK or NOTVALIDATED (signature is OK, but certificate could not be validated) ++ CPPUNIT_ASSERT(nState == 1 || nState == 4); + } + + void DesktopLOKTest::testInsertCertificate_PEM_DOCX() +@@ -2886,7 +2887,8 @@ void DesktopLOKTest::testInsertCertificate_PEM_DOCX() + } + + int nState = pDocument->m_pDocumentClass->getSignatureState(pDocument); +- CPPUNIT_ASSERT_EQUAL(int(5), nState); ++ // PARTIAL_OK or NOTVALIDATED_PARTIAL_OK ++ CPPUNIT_ASSERT(nState == 5 || nState == 6); + } + + void DesktopLOKTest::testSignDocument_PEM_PDF() |