From 0a28fbae1b7c00a32fe5b3d8bfa1cb0d8c8d4a85 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 5 Mar 2007 01:23:44 +0000 Subject: r21693: Fix the RPC-SCANNER test. Share some code with the RPC-MGMT test to make things easier to keep working. Andrew Bartlett (This used to be commit 16db4c1436725e41ea05628f20fc9396d7bd7eaa) --- source4/torture/rpc/mgmt.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'source4/torture/rpc/mgmt.c') diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c index 97b1d0462d..f28a0a9342 100644 --- a/source4/torture/rpc/mgmt.c +++ b/source4/torture/rpc/mgmt.c @@ -30,7 +30,11 @@ /* ask the server what interface IDs are available on this endpoint */ -static BOOL test_inq_if_ids(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) +BOOL test_inq_if_ids(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, + BOOL (*per_id_test)(const struct dcerpc_interface_table *iface, + TALLOC_CTX *mem_ctx, + struct dcerpc_syntax_id *id), + const void *priv) { NTSTATUS status; struct mgmt_inq_if_ids r; @@ -63,6 +67,10 @@ static BOOL test_inq_if_ids(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) printf("\tuuid %s version 0x%08x '%s'\n", GUID_string(mem_ctx, &id->uuid), id->if_version, idl_pipe_name(&id->uuid, id->if_version)); + + if (per_id_test) { + per_id_test(priv, mem_ctx, id); + } } return True; @@ -255,7 +263,7 @@ BOOL torture_rpc_mgmt(struct torture_context *torture) ret = False; } - if (!test_inq_if_ids(p, loop_ctx)) { + if (!test_inq_if_ids(p, loop_ctx, NULL, NULL)) { ret = False; } -- cgit