diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-12-14 07:58:52 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-12-14 09:30:25 +0100 |
commit | 355878558967ef5a94c73f2ad92d26f62bd703f4 (patch) | |
tree | 9b7127ecfc8a5f4b740dcc21f1f80bd36f096997 /sal | |
parent | ad56717ed85d271616e102540a2e20e3cf7a887c (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
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() |