mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
e97fbcc4b1
torture_winbind_struct_show_sequence() is failing if run as: make -j8 test TESTS="samba4.rpc.lsa.trusted.*ad_dc samba4.winbind.struct.ad_dc" The reason is that the test constructs two lists of domains and assumes that the list contain same domains in the same order. However: - the list based on DO_STRUCT_REQ_REP(WINBINDD_SHOW_SEQUENCE, &req, &rep) contains 51 domains - the list based on DO_STRUCT_REQ_REP(WINBINDD_LIST_TRUSTDOM, &req, &rep) contains 39 domains and we got: failure: show_sequence [ ../../source4/torture/winbind/struct_based.c:824: domlist[i].netbios_name was TORTURE201, expected TORTURE200: inconsistent order of domain lists ] Both list are based on full domain list, however the smaller one filters out domain without trust_type in winbindd_list_trusted_domains(): trust_type = get_trust_type_string(talloc_tos(), d, domain); if (trust_type == NULL) { continue; } Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>