Paul Bryan Roberts : advapi32: LookupAccountNameW() - add got clause to test.

Alexandre Julliard julliard at winehq.org
Tue Oct 21 07:07:02 CDT 2008


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

Author: Paul Bryan Roberts <pbronline-wine at yahoo.co.uk>
Date:   Sat Oct 18 19:54:32 2008 +0100

advapi32: LookupAccountNameW() - add got clause to test.

---

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

diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 7e4d832..d1e5b5c 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -1555,8 +1555,8 @@ static void test_LookupAccountName(void)
         ok(!lstrcmp(account, user_name), "Expected %s, got %s\n", user_name, account);
         ok(!lstrcmp(domain, sid_dom), "Expected %s, got %s\n", sid_dom, domain);
         ok(domain_size == domain_save - 1, "Expected %d, got %d\n", domain_save - 1, domain_size);
-        ok(lstrlen(domain) == domain_size, "Expected %d\n", lstrlen(domain));
-        ok(sid_use == SidTypeUser, "Expected SidTypeUser, got %d\n", sid_use);
+        ok(lstrlen(domain) == domain_size, "Expected %d, got %d\n", lstrlen(domain), domain_size);
+        ok(sid_use == SidTypeUser, "Expected SidTypeUser (%d), got %d\n", SidTypeUser, sid_use);
     }
     domain_size = domain_save;
     sid_size = sid_save;
@@ -1577,7 +1577,7 @@ static void test_LookupAccountName(void)
         ok(domain_size == 0, "Expected 0, got %d\n", domain_size);
         todo_wine
         ok(lstrlen(domain) == domain_size, "Expected %d, got %d\n", lstrlen(domain), domain_size);
-        ok(sid_use == SidTypeWellKnownGroup, "Expected SidTypeUser, got %d\n", sid_use);
+        ok(sid_use == SidTypeWellKnownGroup, "Expected SidTypeWellKnownGroup (%d), got %d\n", SidTypeWellKnownGroup, sid_use);
         domain_size = domain_save;
     }
 
@@ -1640,7 +1640,7 @@ static void test_LookupAccountName(void)
         ok(!lstrcmp(account, domain),
            "Got %s for account and %s for domain, these should be the same\n",
            account, domain);
-        ok(sid_use == SidTypeDomain, "Expected SidTypeDomain, got %d\n", SidTypeDomain);
+        ok(sid_use == SidTypeDomain, "Expected SidTypeDomain (%d), got %d\n", SidTypeDomain, sid_use);
     }
 
     /* try an invalid account name */




More information about the wine-cvs mailing list