s3 selftest: Fix WINBINDD_LIST_GROUPS test
commite95c04f0f19a6e00251f9eceb94c519a0f91b308
authorKai Blin <kai@samba.org>
Wed, 13 Jan 2010 15:02:00 +0000 (13 16:02 +0100)
committerKai Blin <kai@samba.org>
Thu, 14 Jan 2010 14:18:35 +0000 (14 15:18 +0100)
tree0d0bfe0e05de4e25caff62de2d7b7ae49ca422e5
parent932d4a874bb79ad76b95b43491b223d766ab4196
s3 selftest: Fix WINBINDD_LIST_GROUPS test

If there's no groups in the database, there are no entries in extra_data. This
caused WINBINDD_LIST_GROUPS test to fail. Use the fact that
WINBINDD_LIST_GROUPS now reports the number of groups in data.num_entries to
identify the "no groups" case.
source4/torture/winbind/struct_based.c