[Libreoffice-commits] core.git: test/source
Stephan Bergmann
sbergman at redhat.com
Wed Aug 23 14:21:13 UTC 2017
test/source/screenshot_test.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7aedcf09c932a1bd7dd6b3e94e006b35fe7575f3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Aug 23 16:17:36 2017 +0200
osl::Directory::createPath with excess slashes fails with E_INVAL on Windows
Change-Id: Ic7d8a2e9bdad9a255f984116c4fdecd0e1c0d265
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index f3d535ba2374..b0c73b3b5573 100644
--- a/test/source/screenshot_test.cxx
+++ b/test/source/screenshot_test.cxx
@@ -36,7 +36,7 @@ using namespace css;
using namespace css::uno;
ScreenshotTest::ScreenshotTest()
-: m_aScreenshotDirectory("/screenshots/"),
+: m_aScreenshotDirectory("screenshots"),
maKnownDialogs()
{
SvtSysLocaleOptions localeOptions;
@@ -80,7 +80,7 @@ void ScreenshotTest::implSaveScreenshot(const Bitmap& rScreenshot, const OString
osl::FileBase::E_None, e);
}
- OUString aFullPath = m_directories.getPathFromWorkdir(OUStringToOString(aDirname + "/" + aBasename + ".png",RTL_TEXTENCODING_UTF8).getStr());
+ OUString aFullPath = m_directories.getPathFromWorkdir(OUStringToOString("/" + aDirname + "/" + aBasename + ".png",RTL_TEXTENCODING_UTF8).getStr());
SvFileStream aNew(aFullPath, StreamMode::WRITE | StreamMode::TRUNC);
CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to open <" + aFullPath + ">: " + OUString::number(sal_uInt32(aNew.GetErrorCode())), RTL_TEXTENCODING_UTF8).getStr(), aNew.IsOpen());
More information about the Libreoffice-commits
mailing list