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

New commits:
commit c7707db0f43deee832aa2b23ff2aa1ba711651cc
Author: Stephan Bergmann <[email protected]>
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 <[email protected]>
    Reviewed-by: Stephan Bergmann <[email protected]>

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";
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to