James Hawkins : advapi32: Print the actual result of several failing tests.

Alexandre Julliard julliard at winehq.org
Fri Aug 29 07:29:56 CDT 2008


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

Author: James Hawkins <jhawkins at codeweavers.com>
Date:   Thu Aug 28 21:10:13 2008 -0500

advapi32: Print the actual result of several failing tests.

---

 dlls/advapi32/tests/crypt_lmhash.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/advapi32/tests/crypt_lmhash.c b/dlls/advapi32/tests/crypt_lmhash.c
index b90e02c..9f2b24e 100644
--- a/dlls/advapi32/tests/crypt_lmhash.c
+++ b/dlls/advapi32/tests/crypt_lmhash.c
@@ -348,18 +348,20 @@ static void test_SystemFunction005(void)
     out.Length = 0;
     out.MaximumLength = 0;
     r = pSystemFunction005(&out, &key, &res);
-    ok(r == STATUS_SUCCESS, "function failed\n");
+    ok(r == STATUS_SUCCESS, "Expected STATUS_SUCCESS, got %08x\n", r);
 
     ok(res.Length == in.Length, "Length wrong\n");
     ok(!memcmp(res.Buffer, in.Buffer, in.Length), "data wrong\n");
 
     res.MaximumLength = 0;
     r = pSystemFunction005(&out, &key, &res);
-    ok(r == STATUS_BUFFER_TOO_SMALL, "function failed\n");
+    ok(r == STATUS_BUFFER_TOO_SMALL,
+       "Expected STATUS_BUFFER_TOO_SMALL, got %08x\n", r);
 
     key.Length = 1;
     r = pSystemFunction005(&out, &key, &res);
-    ok(r == STATUS_UNKNOWN_REVISION, "function failed\n");
+    ok(r == STATUS_UNKNOWN_REVISION,
+       "Expected STATUS_UNKNOWN_REVISION, got %08x\n", r);
 
     key.Length = 0;
     r = pSystemFunction005(&out, &key, &res);




More information about the wine-cvs mailing list