1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libwbclient: Test wbcGetDisplayName

This commit is contained in:
Volker Lendecke 2010-04-10 16:36:22 +02:00
parent 8f3ab439f3
commit ae3edf85d4

View File

@ -231,6 +231,12 @@ static bool test_wbc_users(struct torture_context *tctx)
wbcFreeMemory(name);
torture_assert_wbc_ok(tctx, wbcLookupUserSids(&sid, true, &num_sids, &sids),
"wbcLookupUserSids failed");
torture_assert_wbc_ok(
tctx, wbcGetDisplayName(&sid, &domain, &name,
&name_type),
"wbcGetDisplayName failed");
wbcFreeMemory(domain);
wbcFreeMemory(name);
wbcFreeMemory(sids);
}
wbcFreeMemory(users);