sal/qa/osl/file/osl_File.cxx |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 355878558967ef5a94c73f2ad92d26f62bd703f4
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Dec 14 07:58:52 2021 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Dec 14 09:30:25 2021 +0100

    A more expressive CPPUNIT_ASSERT_MESSAGE
    
    Change-Id: I65d64002e5021c84af9ad7b8f5b693f04d79d4ec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126797
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 232bd87693f2..09dedbb17bef 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -2230,8 +2230,13 @@ namespace osl_File
             deleteTestFile(aTestFile);
 #endif
 
-            CPPUNIT_ASSERT_MESSAGE("test for open function: create an illegal 
file",
-                                    bOK);
+            CPPUNIT_ASSERT_MESSAGE(
+                OUStringToOString(
+                    OUStringConcatenation(
+                        "test for open function: create an illegal file <" + 
aTestFile + ">: "
+                        + OUString::number(nError1)),
+                    RTL_TEXTENCODING_UTF8).getStr(),
+                bOK);
         }
 
         void open_005()

Reply via email to