[Libreoffice-commits] core.git: test/source
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Tue Dec 13 09:26:03 UTC 2016
test/source/screenshot_test.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 36569a870ff8be8eb62a453bb8fbe97a4d3c705a
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Tue Dec 13 10:21:35 2016 +0100
cui.screenshot: Show full path when failing to create it
Change-Id: Ic5196e90d7a25665cf9b5a2b039492195b0f00c2
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index 0a3c4f9..798ed20 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);
More information about the Libreoffice-commits
mailing list