diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx index 72b00b3459bd..ea59027de43e 100644 --- a/sal/qa/osl/security/osl_Security.cxx +++ b/sal/qa/osl/security/osl_Security.cxx @@ -36,6 +36,8 @@ #include #endif #include +#include +#include using namespace osl; using namespace rtl; @@ -154,8 +156,15 @@ namespace osl_Security ::rtl::OUString strID; bRes = aSec.getUserIdent( strID ); - CPPUNIT_ASSERT_MESSAGE( "#test comment#: get UserID and compare it with names got at the beginning of the test.", - ( sal_True == strUserID.equals( strID ) ) && ( sal_True == bRes )); + rtl::OStringBuffer aMessage; + aMessage.append("strUserID: "); + aMessage.append(rtl::OUStringToOString(strUserID, osl_getThreadTextEncoding())); + aMessage.append(", strID: "); + aMessage.append(rtl::OUStringToOString(strID, osl_getThreadTextEncoding())); + aMessage.append(", bRes: "); + aMessage.append(bRes); + + CPPUNIT_ASSERT_MESSAGE( aMessage.getStr(), strUserID.equals(strID) && (bRes == sal_True)); } CPPUNIT_TEST_SUITE( getUserIdent );