Francois Gouget : wintrust/tests: Fix checks to be more informative when they fail.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 13 06:14:07 CDT 2007


Module: wine
Branch: master
Commit: e04fe246cadd867e9fa92a305b85e236e035f1bc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e04fe246cadd867e9fa92a305b85e236e035f1bc

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jun 12 17:58:44 2007 +0200

wintrust/tests: Fix checks to be more informative when they fail.

---

 dlls/wintrust/tests/register.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wintrust/tests/register.c b/dlls/wintrust/tests/register.c
index 8570c09..049e8e3 100644
--- a/dlls/wintrust/tests/register.c
+++ b/dlls/wintrust/tests/register.c
@@ -320,14 +320,14 @@ static void test_RegPolicyFlags(void)
     ok(!r, "RegQueryValueEx failed: %d\n", r);
 
     pGetFlags(&flags2);
-    ok(flags1 == flags2, "Didn't get expected flags\n");
+    ok(flags1 == flags2, "Got %08x flags instead of %08x\n", flags1, flags2);
 
     flags3 = flags2 | 1;
     ret = pSetFlags(flags3);
     ok(ret, "pSetFlags failed: %d\n", GetLastError());
     size = sizeof(flags1);
     r = RegQueryValueExA(key, State, NULL, NULL, (LPBYTE)&flags1, &size);
-    ok(flags1 == flags3, "Didn't get expected flags\n");
+    ok(flags1 == flags3, "Got %08x flags instead of %08x\n", flags1, flags3);
 
     pSetFlags(flags2);
 




More information about the wine-cvs mailing list