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

Stephan Bergmann sbergman at redhat.com
Wed Mar 28 12:20:47 UTC 2018


 sw/qa/extras/rtfimport/rtfimport.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit c7707db0f43deee832aa2b23ff2aa1ba711651cc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 28 11:33:45 2018 +0200

    Check successful stream creation
    
    Change-Id: Iea7dea13684a15ed1960d2c8562253f5a2e64c34
    Reviewed-on: https://gerrit.libreoffice.org/51992
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 6ddc2239be6c..9153a8747aa2 100644
--- a/sw/qa/extras/rtfimport/rtfimport.cxx
+++ b/sw/qa/extras/rtfimport/rtfimport.cxx
@@ -71,6 +71,7 @@ protected:
         SvStream* pStream = utl::UcbStreamHelper::CreateStream(
             m_directories.getURLFromSrc("/sw/qa/extras/rtfimport/data/") + aFilename,
             StreamMode::WRITE);
+        CPPUNIT_ASSERT_EQUAL(ERRCODE_NONE, pStream->GetError());
         uno::Reference<io::XStream> xStream(new utl::OStreamWrapper(*pStream));
         aDescriptor[0].Value <<= xStream;
         aDescriptor[1].Name = "InsertMode";


More information about the Libreoffice-commits mailing list