mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r25279: - test in the generic get_trusted_domains() function that we got
at least 2 domains. - change the ordering of the tests metze (This used to be commit 22eb3095d622e4cee559387900e5a7d9cfb51171)
This commit is contained in:
parent
a84bdcd1cb
commit
18d4608e43
@ -131,8 +131,11 @@ static bool get_trusted_domains(struct torture_context *torture,
|
||||
|
||||
dcount++;
|
||||
}
|
||||
|
||||
SAFE_FREE(rep.extra_data.data);
|
||||
|
||||
torture_assert(torture, dcount >= 2,
|
||||
"The list of trusted domain should contain 2 entries");
|
||||
|
||||
*_d = d;
|
||||
return true;
|
||||
}
|
||||
@ -211,9 +214,6 @@ static bool torture_winbind_struct_list_trustdom(struct torture_context *torture
|
||||
*/
|
||||
}
|
||||
|
||||
torture_assert(torture, i >= 2,
|
||||
"The list of trusted domain should contain 2 entries");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -243,8 +243,8 @@ struct torture_suite *torture_winbind_struct_init(void)
|
||||
struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
|
||||
|
||||
torture_suite_add_simple_test(suite, "PING", torture_winbind_struct_ping);
|
||||
torture_suite_add_simple_test(suite, "GETDCNAME", torture_winbind_struct_getdcname);
|
||||
torture_suite_add_simple_test(suite, "LIST_TRUSTDOM", torture_winbind_struct_list_trustdom);
|
||||
torture_suite_add_simple_test(suite, "GETDCNAME", torture_winbind_struct_getdcname);
|
||||
|
||||
suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user