summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-03-28 11:33:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-03-28 14:20:24 +0200
commitc7707db0f43deee832aa2b23ff2aa1ba711651cc (patch)
tree441ef7a2765d52012f34d2258c5fa10fdfc1dc56
parent9429455ab54b60f3387ed7159a1c06e6efc1ebe3 (diff)
Check successful stream creation
Change-Id: Iea7dea13684a15ed1960d2c8562253f5a2e64c34 Reviewed-on: https://gerrit.libreoffice.org/51992 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sw/qa/extras/rtfimport/rtfimport.cxx1
1 files changed, 1 insertions, 0 deletions
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";