s4-torture Remove unused temp dirs from the RPC-PAC test.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 17 Jan 2011 05:24:16 +0000 (16:24 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 18 Jan 2011 09:55:05 +0000 (10:55 +0100)
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

source4/torture/rpc/remote_pac.c

index 33034e0190ae9f71f2201f6cce9ee4e51ac97cc8..8f4d677c44aaf9dca861f9743d7b2d1df4cf1671 100644 (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");