[Libreoffice-commits] core.git: test/source

Stephan Bergmann sbergman at redhat.com
Tue Aug 22 16:01:14 UTC 2017


 test/source/screenshot_test.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4e85d4ba5fc0c301fa656dd2d2d26255fe9c6f6e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Aug 22 17:58:44 2017 +0200

    Fix test assertion message
    
    Change-Id: Ifd9f50a68e5dd40003cd1bd32a5b806b0282ce44

diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx
index 909368657961..e5cc0e56c861 100644
--- a/test/source/screenshot_test.cxx
+++ b/test/source/screenshot_test.cxx
@@ -74,7 +74,7 @@ void ScreenshotTest::implSaveScreenshot(const Bitmap& rScreenshot, const OString
 
     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 " + OUString::number(sal_uInt32(aNew.GetErrorCode())), RTL_TEXTENCODING_UTF8).getStr(), aNew.IsOpen());
+    CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to open <" + aFullPath + ">: " + OUString::number(sal_uInt32(aNew.GetErrorCode())), RTL_TEXTENCODING_UTF8).getStr(), aNew.IsOpen());
 
     vcl::PNGWriter aPNGWriter(rScreenshot);
     aPNGWriter.Write(aNew);


More information about the Libreoffice-commits mailing list