s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.
[nivanova/samba-autobuild/.git] / source4 / torture / raw / raw.c
index 5b237d32ebfbea5e15adc38f486dbb21c315a790..a225efe0b5d25a767c38ff92f737ac6dc838a23a 100644 (file)
@@ -26,7 +26,7 @@
 NTSTATUS torture_raw_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "raw");
+               ctx, "raw");
        /* RAW smb tests */
        torture_suite_add_simple_test(suite, "bench-oplock", torture_bench_oplock);
        torture_suite_add_simple_test(suite, "ping-pong", torture_ping_pong);
@@ -79,7 +79,7 @@ NTSTATUS torture_raw_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "Tests for the raw SMB interface");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }