Austin Lund : advapi32/tests: Skip tests for ACL file info if ACL info not stored.

Alexandre Julliard julliard at winehq.org
Wed Nov 18 09:40:44 CST 2009


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

Author: Austin Lund <austin.lund at gmail.com>
Date:   Wed Nov 18 20:52:59 2009 +1000

advapi32/tests: Skip tests for ACL file info if ACL info not stored.

---

 dlls/advapi32/tests/security.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index a327c53..470164a 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -3156,8 +3156,10 @@ static void test_GetSecurityInfo(void)
     ok(sd != NULL, "GetSecurityInfo\n");
     ok(owner != NULL, "GetSecurityInfo\n");
     ok(group != NULL, "GetSecurityInfo\n");
-    ok(dacl != NULL, "GetSecurityInfo\n");
-    ok(IsValidAcl(dacl), "GetSecurityInfo\n");
+    if (dacl != NULL)
+        ok(IsValidAcl(dacl), "GetSecurityInfo\n");
+    else
+        win_skip("No ACL information returned\n");
 
     LocalFree(sd);
 
@@ -3176,8 +3178,10 @@ static void test_GetSecurityInfo(void)
     ok(ret == ERROR_SUCCESS, "GetSecurityInfo returned %d\n", ret);
     ok(owner != NULL, "GetSecurityInfo\n");
     ok(group != NULL, "GetSecurityInfo\n");
-    ok(dacl != NULL, "GetSecurityInfo\n");
-    ok(IsValidAcl(dacl), "GetSecurityInfo\n");
+    if (dacl != NULL)
+        ok(IsValidAcl(dacl), "GetSecurityInfo\n");
+    else
+        win_skip("No ACL information returned\n");
 
     CloseHandle(obj);
 }




More information about the wine-cvs mailing list