1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-torture: pass down struct torture_context to some more calls in mgmt test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Günther Deschner 2015-04-20 15:41:44 +02:00 committed by Michael Adam
parent 8e16fea41a
commit 3e1230e34a

View File

@ -79,7 +79,8 @@ bool test_inq_if_ids(struct torture_context *tctx,
return true;
}
static bool test_inq_stats(struct dcerpc_binding_handle *b,
static bool test_inq_stats(struct torture_context *tctx,
struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
@ -110,7 +111,8 @@ static bool test_inq_stats(struct dcerpc_binding_handle *b,
return true;
}
static bool test_inq_princ_name(struct dcerpc_binding_handle *b,
static bool test_inq_princ_name(struct torture_context *tctx,
struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
@ -146,7 +148,8 @@ static bool test_inq_princ_name(struct dcerpc_binding_handle *b,
return true;
}
static bool test_is_server_listening(struct dcerpc_binding_handle *b,
static bool test_is_server_listening(struct torture_context *tctx,
struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
@ -168,7 +171,8 @@ static bool test_is_server_listening(struct dcerpc_binding_handle *b,
return true;
}
static bool test_stop_server_listening(struct dcerpc_binding_handle *b,
static bool test_stop_server_listening(struct torture_context *tctx,
struct dcerpc_binding_handle *b,
TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
@ -247,19 +251,19 @@ bool torture_rpc_mgmt(struct torture_context *tctx)
continue;
}
if (!test_is_server_listening(bh, loop_ctx)) {
if (!test_is_server_listening(tctx, bh, loop_ctx)) {
ret = false;
}
if (!test_stop_server_listening(bh, loop_ctx)) {
if (!test_stop_server_listening(tctx, bh, loop_ctx)) {
ret = false;
}
if (!test_inq_stats(bh, loop_ctx)) {
if (!test_inq_stats(tctx, bh, loop_ctx)) {
ret = false;
}
if (!test_inq_princ_name(bh, loop_ctx)) {
if (!test_inq_princ_name(tctx, bh, loop_ctx)) {
ret = false;
}