=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: crypt32/tests: Improve test output.

Alexandre Julliard julliard at winehq.org
Tue Sep 25 15:13:37 CDT 2012


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Sep 25 00:47:54 2012 +0200

crypt32/tests: Improve test output.

---

 dlls/crypt32/tests/sip.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c
index 8d9af75..f63afc7 100644
--- a/dlls/crypt32/tests/sip.c
+++ b/dlls/crypt32/tests/sip.c
@@ -101,7 +101,7 @@ static void test_AddRemoveProvider(void)
         skip("Need admin rights\n");
         return;
     }
-    ok ( ret, "CryptSIPAddProvider should have succeeded\n");
+    ok ( ret, "CryptSIPAddProvider should have succeeded, last error %d\n", GetLastError());
 
     /* Dummy provider will be deleted, but the function still fails because
      * pwszIsFunctionName and pwszIsFunctionNameFmt2 are not present in the
@@ -132,12 +132,12 @@ static void test_AddRemoveProvider(void)
     newprov.pwszIsFunctionName = dummyfunction;
     SetLastError(0xdeadbeef);
     ret = CryptSIPAddProvider(&newprov);
-    ok ( ret, "CryptSIPAddProvider should have succeeded\n");
+    ok ( ret, "CryptSIPAddProvider should have succeeded, last error %d\n", GetLastError());
 
     /* Dummy provider should be deleted */
     SetLastError(0xdeadbeef);
     ret = CryptSIPRemoveProvider(&actionid);
-    ok ( ret, "CryptSIPRemoveProvider should have succeeded\n");
+    ok ( ret, "CryptSIPRemoveProvider should have succeeded, last error %d\n", GetLastError());
 }
 
 static const BYTE cabFileData[] = {




More information about the wine-cvs mailing list