desktop/qa/desktop_lib/test_desktop_lib.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit ac519af951541b7313a4c98e1bee463bf47356be Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Thu Apr 20 15:15:38 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Fri Apr 21 08:08:15 2023 +0200 CppunitTest_desktop_lib: disable 3 useless doc sign tests These would test how LOK APIs for signing editable documents would work. In practice, this is already broken, because the tests are disabled in the MPL subset builds but binaries tuned for LOK API users at distro-configs/CPLinux-LOKit.conf already use --enable-mpl-subset. Additionally these tests pass with an upcoming libxmlsec-1.3 for me locally, but not in a RHEL7 environment. So just disable the 3 tests till we have the time to fix them up in MPL subset builds, where they would be useful. PDF signing is a different story, that still works to some extent. Change-Id: Idcfda4c8c72353e710a65c5b0ee68d28e30a351b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150700 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 8490b4d0e116..59c883cb733d 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -198,9 +198,11 @@ public: void testExtractParameter(); void testGetSignatureState_NonSigned(); void testGetSignatureState_Signed(); +#if 0 // broken with system nss on RHEL 7 void testInsertCertificate_DER_ODT(); void testInsertCertificate_PEM_ODT(); void testInsertCertificate_PEM_DOCX(); +#endif void testSignDocument_PEM_PDF(); void testTextSelectionHandles(); void testComplexSelection(); @@ -267,9 +269,11 @@ public: CPPUNIT_TEST(testGetSignatureState_Signed); CPPUNIT_TEST(testGetSignatureState_NonSigned); #if !MPL_HAVE_SUBSET +#if 0 // broken with system nss on RHEL 7 CPPUNIT_TEST(testInsertCertificate_DER_ODT); CPPUNIT_TEST(testInsertCertificate_PEM_ODT); CPPUNIT_TEST(testInsertCertificate_PEM_DOCX); +#endif CPPUNIT_TEST(testSignDocument_PEM_PDF); #endif CPPUNIT_TEST(testTextSelectionHandles); @@ -2708,6 +2712,7 @@ void DesktopLOKTest::testGetSignatureState_NonSigned() CPPUNIT_ASSERT_EQUAL(int(0), nState); } +#if 0 // broken with system nss on RHEL 7 void DesktopLOKTest::testInsertCertificate_DER_ODT() { // Load the document, save it into a temp file and load that file again @@ -2865,6 +2870,7 @@ void DesktopLOKTest::testInsertCertificate_PEM_DOCX() int nState = pDocument->m_pDocumentClass->getSignatureState(pDocument); CPPUNIT_ASSERT_EQUAL(int(5), nState); } +#endif void DesktopLOKTest::testSignDocument_PEM_PDF() {