Juan Lang : secur32: Fix test failure with neither gnutls nor ntlm_auth available.

Alexandre Julliard julliard at winehq.org
Tue Sep 30 11:15:48 CDT 2008


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Sun Sep 28 08:38:41 2008 -0700

secur32: Fix test failure with neither gnutls nor ntlm_auth available.

---

 dlls/secur32/tests/main.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/secur32/tests/main.c b/dlls/secur32/tests/main.c
index 359bcc7..e652485 100644
--- a/dlls/secur32/tests/main.c
+++ b/dlls/secur32/tests/main.c
@@ -143,8 +143,17 @@ static void testEnumerateSecurityPackages(void)
             "EnumerateSecurityPackages() should return %d, not %08x\n",
             SEC_E_OK, sec_status);
 
-    ok(num_packages > 0, "Number of sec packages should be > 0 ,but is %d\n",
-            num_packages);
+    if (num_packages == 0)
+    {
+        todo_wine
+        ok(num_packages > 0, "Number of sec packages should be > 0 ,but is %d\n",
+                num_packages);
+        skip("no sec packages to check\n");
+        return;
+    }
+    else
+        ok(num_packages > 0, "Number of sec packages should be > 0 ,but is %d\n",
+                num_packages);
 
     ok(pkg_info != NULL, 
             "pkg_info should not be NULL after EnumerateSecurityPackages\n");




More information about the wine-cvs mailing list