summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/oplock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/oplock.c')
-rw-r--r--source4/torture/smb2/oplock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index 53a6c18f693..83197a4f4a8 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -3947,10 +3947,10 @@ static void levelII501_timeout_cb(struct tevent_context *ev,
state->done = true;
}
-struct torture_suite *torture_smb2_oplocks_init(void)
+struct torture_suite *torture_smb2_oplocks_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite =
- torture_suite_create(talloc_autofree_context(), "oplock");
+ torture_suite_create(ctx, "oplock");
torture_suite_add_2smb2_test(suite, "exclusive1", test_smb2_oplock_exclusive1);
torture_suite_add_2smb2_test(suite, "exclusive2", test_smb2_oplock_exclusive2);
@@ -4332,10 +4332,10 @@ done:
return ret;
}
-struct torture_suite *torture_smb2_kernel_oplocks_init(void)
+struct torture_suite *torture_smb2_kernel_oplocks_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite =
- torture_suite_create(talloc_autofree_context(), "kernel-oplocks");
+ torture_suite_create(ctx, "kernel-oplocks");
torture_suite_add_1smb2_test(suite, "kernel_oplocks1", test_smb2_kernel_oplocks1);
torture_suite_add_1smb2_test(suite, "kernel_oplocks2", test_smb2_kernel_oplocks2);