From: Debian LibreOffice Maintainers Date: Tue, 28 Nov 2023 17:39:15 +0000 (+0000) Subject: work-around-expired-certificiate-in-test X-Git-Tag: archive/raspbian/4%7.4.7-1+rpi1+deb12u2^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=27768ab5290e8b269abab436c332e5d5d71caf51;p=libreoffice.git work-around-expired-certificiate-in-test Gbp-Pq: Name work-around-expired-certificiate-in-test.diff --- diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 1898d3f1377..be3d9ebd325 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()