[Libreoffice-commits] core.git: xmlsecurity/qa

Stephan Bergmann sbergman at redhat.com
Wed Mar 28 19:18:19 UTC 2018


 xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit bda744fb532c9d7a76c8bc08fda0f0aa6feec471
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 28 17:39:35 2018 +0200

    No need to open this test doc read/write
    
    ...fail when SRCDIR is a read-only tree
    
    Change-Id: I80a372b3eb71faed1215305a55df93390c846eed
    Reviewed-on: https://gerrit.libreoffice.org/52020
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
index e0f0698703b8..ddfd19f37a26 100644
--- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
+++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
@@ -514,8 +514,7 @@ void PDFSigningTest::testUnknownSubFilter()
     uno::Reference<xml::crypto::XXMLSecurityContext> xSecurityContext
         = xSEInitializer->createSecurityContext(OUString());
     SvStream* pStream = utl::UcbStreamHelper::CreateStream(
-        m_directories.getURLFromSrc(DATA_DIRECTORY) + "cr-comment.pdf",
-        StreamMode::READ | StreamMode::WRITE);
+        m_directories.getURLFromSrc(DATA_DIRECTORY) + "cr-comment.pdf", StreamMode::STD_READ);
     uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream));
     DocumentSignatureManager aManager(mxComponentContext, DocumentSignatureMode::Content);
     aManager.mxSignatureStream = xStream;


More information about the Libreoffice-commits mailing list