Paul Vriens : advapi32/tests: Move skip to a more appropriate place.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 5 13:10:26 CST 2007


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Mar  5 14:11:22 2007 +0100

advapi32/tests: Move skip to a more appropriate place.

---

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

diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c
index 07dd611..8502e17 100644
--- a/dlls/advapi32/tests/lsa.c
+++ b/dlls/advapi32/tests/lsa.c
@@ -54,8 +54,6 @@ static BOOL init(void)
 
         if (pLsaClose && pLsaFreeMemory && pLsaOpenPolicy && pLsaQueryInformationPolicy && pConvertSidToStringSidA)
             return TRUE;
-        else
-            skip("Needed functions are not available\n");
     }
 
     return FALSE;
@@ -180,8 +178,10 @@ static void test_lsa(void)
 
 START_TEST(lsa)
 {
-    if (!init())
+    if (!init()) {
+        skip("Needed functions are not available\n");
         return;
+    }
 
     test_lsa();
 }




More information about the wine-cvs mailing list