summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/uuid/rtl_Uuid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/rtl/uuid/rtl_Uuid.cxx')
-rw-r--r--sal/qa/rtl/uuid/rtl_Uuid.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/qa/rtl/uuid/rtl_Uuid.cxx b/sal/qa/rtl/uuid/rtl_Uuid.cxx
index b77e84afe2ff..aae77cfe32a4 100644
--- a/sal/qa/rtl/uuid/rtl_Uuid.cxx
+++ b/sal/qa/rtl/uuid/rtl_Uuid.cxx
@@ -123,7 +123,8 @@ public:
rtl_string_newFromStr( &pName , "this is a bla.blubs.DNS-Name" );
rtl_createNamedUuid( pNamedUUID , NameSpace_DNS , pName );
rtl_createNamedUuid( pNamedUUID2 , NameSpace_DNS , pName );
- CPPUNIT_ASSERT_MESSAGE( "Same name should generate the same uuid", ! memcmp( pNamedUUID , pNamedUUID2 , 16 ) && rtl_compareUuid( pNamedUUID , pNamedUUID2 ) == 0 );
+ CPPUNIT_ASSERT_MESSAGE( "Same name should generate the same uuid", ! memcmp( pNamedUUID , pNamedUUID2 , 16 ));
+ CPPUNIT_ASSERT_EQUAL_MESSAGE( "Same name should generate the same uuid", sal_Int32(0), rtl_compareUuid( pNamedUUID , pNamedUUID2 ) );
CPPUNIT_ASSERT_MESSAGE( "Same name should generate the same uuid", ! memcmp( pNamedUUID , pPriorCalculatedUUID , 16 ) );
// Different names does not generate the same uuid
@@ -133,7 +134,8 @@ public:
// the same name with different namespace uuid produces different uuids
rtl_createNamedUuid( pNamedUUID , NameSpace_URL , pName );
- CPPUNIT_ASSERT_MESSAGE( " same name with different namespace uuid produces different uuids", memcmp( pNamedUUID , pNamedUUID2 , 16 ) && rtl_compareUuid( pNamedUUID , pNamedUUID2 ) != 0);
+ CPPUNIT_ASSERT_MESSAGE( " same name with different namespace uuid produces different uuids", memcmp( pNamedUUID , pNamedUUID2 , 16 ));
+ CPPUNIT_ASSERT_MESSAGE( " same name with different namespace uuid produces different uuids", rtl_compareUuid( pNamedUUID , pNamedUUID2 ) != 0);
//test compareUuid
if ( rtl_compareUuid( pNamedUUID , pNamedUUID2 ) > 0 )