diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-12-13 10:21:35 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-12-13 10:25:07 +0100 |
commit | 36569a870ff8be8eb62a453bb8fbe97a4d3c705a (patch) | |
tree | d1b05a45117c975927b823419a2188db6d81ff1f | |
parent | 10ae3090fc07c1dde2d0b90a696efb7736ad779d (diff) |
cui.screenshot: Show full path when failing to create it
Change-Id: Ic5196e90d7a25665cf9b5a2b039492195b0f00c2
-rw-r--r-- | test/source/screenshot_test.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index 0a3c4f9840e9..798ed20b362d 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -72,8 +72,9 @@ void ScreenshotTest::implSaveScreenshot(const Bitmap& rScreenshot, const OString ( (maCurrentLanguage == "en-US") ? OUString() : "/" + maCurrentLanguage ); osl::FileBase::RC err = osl::Directory::createPath(m_directories.getURLFromWorkdir(OUStringToOString(aDirname,RTL_TEXTENCODING_UTF8).getStr())); - CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to create " + aDirname, RTL_TEXTENCODING_UTF8).getStr(), - (err == osl::FileBase::E_None || err == osl::FileBase::E_EXIST)); + CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to create screenshot directory - " + m_directories.getURLFromWorkdir( + OUStringToOString(aDirname, RTL_TEXTENCODING_UTF8).getStr()), RTL_TEXTENCODING_UTF8).getStr(), + (err == osl::FileBase::E_None || err == osl::FileBase::E_EXIST) ); OUString aFullPath = m_directories.getPathFromWorkdir(OUStringToOString(aDirname + "/" + aBasename + ".png",RTL_TEXTENCODING_UTF8).getStr()); SvFileStream aNew(aFullPath, StreamMode::WRITE | StreamMode::TRUNC); |