summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-16 22:42:11 +0200
committerGünther Deschner <gd@samba.org>2010-07-16 22:47:30 +0200
commit1c7d08990469cc41e07e11e3d3d714021753f7e2 (patch)
treee42acb00adca2bd8b635737c69114ce2ddaf0652
parent7755e196a15ada80505c3ffd77b41c20e60b69ec (diff)
downloadsamba-1c7d08990469cc41e07e11e3d3d714021753f7e2.tar.gz
samba-1c7d08990469cc41e07e11e3d3d714021753f7e2.tar.bz2
samba-1c7d08990469cc41e07e11e3d3d714021753f7e2.zip
s4-smbtorture: rearrange testlist in RPC-BIND.
Guenther
-rw-r--r--source4/torture/rpc/bind.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/source4/torture/rpc/bind.c b/source4/torture/rpc/bind.c
index 909596d1cd..c2bd60143d 100644
--- a/source4/torture/rpc/bind.c
+++ b/source4/torture/rpc/bind.c
@@ -87,11 +87,29 @@ static void test_bind_op(struct torture_suite *suite,
struct torture_suite *torture_rpc_bind(TALLOC_CTX *mem_ctx)
{
struct torture_suite *suite = torture_suite_create(mem_ctx, "BIND");
-
- test_bind_op(suite, "ntlm,sign", DCERPC_AUTH_NTLM | DCERPC_SIGN);
- test_bind_op(suite, "ntlm,sign,seal", DCERPC_AUTH_NTLM | DCERPC_SIGN | DCERPC_SEAL);
- test_bind_op(suite, "spnego,sign", DCERPC_AUTH_SPNEGO | DCERPC_SIGN);
- test_bind_op(suite, "spnego,sign,seal", DCERPC_AUTH_SPNEGO | DCERPC_SIGN | DCERPC_SEAL);
+ struct {
+ const char *test_name;
+ uint32_t flags;
+ } tests[] = {
+ {
+ .test_name = "ntlm,sign",
+ .flags = DCERPC_AUTH_NTLM | DCERPC_SIGN
+ },{
+ .test_name = "ntlm,sign,seal",
+ .flags = DCERPC_AUTH_NTLM | DCERPC_SIGN | DCERPC_SEAL
+ },{
+ .test_name = "spnego,sign",
+ .flags = DCERPC_AUTH_SPNEGO | DCERPC_SIGN
+ },{
+ .test_name = "spnego,sign,seal",
+ .flags = DCERPC_AUTH_SPNEGO | DCERPC_SIGN | DCERPC_SEAL
+ }
+ };
+ int i;
+
+ for (i=0; i < ARRAY_SIZE(tests); i++) {
+ test_bind_op(suite, tests[i].test_name, tests[i].flags);
+ }
return suite;
}