Module: wine
Branch: master
Commit: 138f119705597956d8a6d87c656bf34e70b3ce43
URL: http://source.winehq.org/git/wine.git/?a=commit;h=138f119705597956d8a6d87c6…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Mon Feb 11 15:36:36 2013 +0100
rpcrt4/tests: Trace the GUID when it is wrong.
---
dlls/rpcrt4/tests/rpc.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index 739a00e..988b5c3 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -814,6 +814,7 @@ static void test_UuidCreateSequential(void)
if (version == 1)
{
UUID guid2;
+ char buf[39];
if (!ret)
{
@@ -821,7 +822,8 @@ static void test_UuidCreateSequential(void)
* address in the uuid:
*/
ok(!(guid1.Data4[2] & 0x01),
- "GUID does not appear to contain a MAC address\n");
+ "GUID does not appear to contain a MAC address: %s\n",
+ printGuid(buf, sizeof(buf), &guid1));
}
else
{
@@ -829,7 +831,8 @@ static void test_UuidCreateSequential(void)
* address in the uuid:
*/
ok((guid1.Data4[2] & 0x01),
- "GUID does not appear to contain a multicast MAC address\n");
+ "GUID does not appear to contain a multicast MAC address: %s\n",
+ printGuid(buf, sizeof(buf), &guid1));
}
/* Generate another GUID, and make sure its MAC address matches the
* first.
@@ -840,7 +843,8 @@ static void test_UuidCreateSequential(void)
version = (guid2.Data3 & 0xf000) >> 12;
ok(version == 1, "unexpected version %d\n", version);
ok(!memcmp(guid1.Data4, guid2.Data4, sizeof(guid2.Data4)),
- "unexpected value in MAC address\n");
+ "unexpected value in MAC address: %s\n",
+ printGuid(buf, sizeof(buf), &guid2));
}
}