summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-10 16:36:22 +0200
committerVolker Lendecke <vl@samba.org>2010-04-19 14:27:18 +0200
commitae3edf85d46f234eada5a7e36d97026e44005ea2 (patch)
treeeb7dfd530a2adbddd265618ec86534519bbb6503
parent8f3ab439f329234a47d8c32435a2e9606e8037da (diff)
downloadsamba-ae3edf85d46f234eada5a7e36d97026e44005ea2.tar.gz
samba-ae3edf85d46f234eada5a7e36d97026e44005ea2.tar.bz2
samba-ae3edf85d46f234eada5a7e36d97026e44005ea2.zip
libwbclient: Test wbcGetDisplayName
-rw-r--r--nsswitch/libwbclient/tests/wbclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c
index 9fc1a162b1..df9e7427ee 100644
--- a/nsswitch/libwbclient/tests/wbclient.c
+++ b/nsswitch/libwbclient/tests/wbclient.c
@@ -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);