work-around-expired-certificiate-in-test
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Thu, 6 Feb 2025 17:18:37 +0000 (18:18 +0100)
committerRene Engelhard <rene@debian.org>
Thu, 6 Feb 2025 17:18:37 +0000 (18:18 +0100)
Gbp-Pq: Name work-around-expired-certificiate-in-test.diff

desktop/qa/desktop_lib/test_desktop_lib.cxx

index 1898d3f1377f918e5a4ff414f30fa39e7e42ed3f..be3d9ebd325333311df351e22deaf75abf9cdcb1 100644 (file)
@@ -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()