1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s4-torture Remove unused temp dirs from the RPC-PAC test.

The code previously required the creation of a messaging context, but
this isn't done any more, so we don't need the tmp dir to put it in.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2011-01-17 16:24:16 +11:00
parent 4e2e5eafb2
commit 489e3372d6

View File

@ -74,7 +74,6 @@ static bool test_PACVerify(struct torture_context *tctx,
struct auth_session_info *session_info;
char *tmp_dir;
struct dcerpc_binding_handle *b = p->binding_handle;
TALLOC_CTX *tmp_ctx = talloc_new(tctx);
torture_assert(tctx, tmp_ctx != NULL, "talloc_new() failed");
@ -85,9 +84,6 @@ static bool test_PACVerify(struct torture_context *tctx,
return false;
}
status = torture_temp_dir(tctx, "PACVerify", &tmp_dir);
torture_assert_ntstatus_ok(tctx, status, "torture_temp_dir failed");
status = gensec_client_start(tctx, &gensec_client_context, tctx->ev,
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
torture_assert_ntstatus_ok(tctx, status, "gensec_client_start (client) failed");
@ -418,17 +414,12 @@ static bool test_S2U4Self(struct torture_context *tctx,
struct dom_sid *builtin_domain;
char *tmp_dir;
TALLOC_CTX *tmp_ctx = talloc_new(tctx);
torture_assert(tctx, tmp_ctx != NULL, "talloc_new() failed");
/* First, do a normal Kerberos connection */
status = torture_temp_dir(tctx, "S2U4Self", &tmp_dir);
torture_assert_ntstatus_ok(tctx, status, "torture_temp_dir failed");
status = gensec_client_start(tctx, &gensec_client_context, tctx->ev,
lpcfg_gensec_settings(tctx, tctx->lp_ctx));
torture_assert_ntstatus_ok(tctx, status, "gensec_client_start (client) failed");