work-around-expired-certificiate-in-test
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sat, 28 Sep 2024 13:36:47 +0000 (13:36 +0000)
committerBastien Roucariès <rouca@debian.org>
Sat, 28 Sep 2024 13:36:47 +0000 (13:36 +0000)
Gbp-Pq: Name work-around-expired-certificiate-in-test.diff

desktop/qa/desktop_lib/test_desktop_lib.cxx

index 9ee4a596ec700fa03de9ae7aa167a2c8411956cb..b86019aa5ea524d45138a456976c6d72c50509c8 100644 (file)
@@ -2479,7 +2479,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()
@@ -2537,7 +2538,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()