s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.
authorJeremy Allison <jra@samba.org>
Mon, 24 Apr 2017 21:41:26 +0000 (14:41 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 5 May 2017 13:52:11 +0000 (15:52 +0200)
Change callers to use the passed in TALLOC_CTX *
instead of talloc_autofree_context().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
25 files changed:
libcli/echo/tests/echo.c
source4/torture/basic/base.c
source4/torture/dfs/domaindfs.c
source4/torture/dns/dlz_bind9.c
source4/torture/dns/internal_dns.c
source4/torture/drs/drs_init.c
source4/torture/krb5/kdc-heimdal.c
source4/torture/krb5/kdc-mit.c
source4/torture/ldap/common.c
source4/torture/libnet/libnet.c
source4/torture/libnetapi/libnetapi.c
source4/torture/libsmbclient/libsmbclient.c
source4/torture/local/local.c
source4/torture/nbench/nbench.c
source4/torture/nbt/nbt.c
source4/torture/ntp/ntp_signd.c
source4/torture/rap/rap.c
source4/torture/raw/raw.c
source4/torture/rpc/rpc.c
source4/torture/smb2/smb2.c
source4/torture/smbtorture.h
source4/torture/torture.c
source4/torture/unix/unix.c
source4/torture/vfs/vfs.c
source4/torture/winbind/winbind.c

index 8e5150403eef855b30770acc761714b0176dbfd5..e465b99956f29e14b7d28d901cea88ba243a9dc6 100644 (file)
@@ -85,13 +85,13 @@ NTSTATUS torture_libcli_echo_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
 
-       suite = torture_suite_create(talloc_autofree_context(), "echo");
+       suite = torture_suite_create(ctx, "echo");
        NT_STATUS_HAVE_NO_MEMORY(suite);
 
        torture_suite_add_simple_test(suite, "udp", torture_echo_udp);
 
        suite->description = talloc_strdup(suite, "libcli/echo interface tests");
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index f5ee966eac86490eaa641c4d433bec96ca975f0a..6e989bfbf015924c453d996ed3a749254d8440a4 100644 (file)
@@ -1937,7 +1937,7 @@ static bool run_birthtimetest(struct torture_context *tctx,
 
 NTSTATUS torture_base_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "base");
+       struct torture_suite *suite = torture_suite_create(ctx, "base");
 
        torture_suite_add_2smb_test(suite, "fdpass", run_fdpasstest);
        torture_suite_add_suite(suite, torture_base_locktest(suite));
@@ -1996,7 +1996,7 @@ NTSTATUS torture_base_init(TALLOC_CTX *ctx)
        suite->description = talloc_strdup(suite, 
                                        "Basic SMB tests (imported from the original smbtorture)");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 82e6843bbcfb66a4826e11a9bfbcb14c3b3dd59f..4bc51926082c8d58452e6d8e468ce434d2f50ef1 100644 (file)
@@ -503,7 +503,7 @@ static bool test_low_referral_level(struct torture_context *tctx,
 
 NTSTATUS torture_dfs_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "dfs");
+       struct torture_suite *suite = torture_suite_create(ctx, "dfs");
        struct torture_suite *suite_basic = torture_suite_create(suite, "domain");
 
        torture_suite_add_suite(suite, suite_basic);
@@ -534,7 +534,7 @@ NTSTATUS torture_dfs_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "DFS referrals calls");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 7a01ec0ec286c4516381a3328074cb2b0b8dcae5..f16d16ec06134054d227cc85ddf2e02725829c75 100644 (file)
@@ -1084,12 +1084,11 @@ NTSTATUS torture_bind_dns_init(TALLOC_CTX *);
 NTSTATUS torture_bind_dns_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
-       TALLOC_CTX *mem_ctx = talloc_autofree_context();
 
        /* register DNS related test cases */
-       suite = dlz_bind9_suite(mem_ctx);
+       suite = dlz_bind9_suite(ctx);
        if (!suite) return NT_STATUS_NO_MEMORY;
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index ac234e1b38b790c91fcfbfe7ab058ff67d7cc8a3..2ccc7ed5aa16ce92f8856302ab108553626a8ac3 100644 (file)
@@ -179,12 +179,11 @@ NTSTATUS torture_internal_dns_init(TALLOC_CTX *);
 NTSTATUS torture_internal_dns_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
-       TALLOC_CTX *mem_ctx = talloc_autofree_context();
 
        /* register internal DNS torture test cases */
-       suite = internal_dns_suite(mem_ctx);
+       suite = internal_dns_suite(ctx);
        if (!suite) return NT_STATUS_NO_MEMORY;
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 2dcb6f1b56db1e2acbb9104506bae6fb793686fd..bbe246d189c82b4b0bb561626eaa11493bb17499 100644 (file)
@@ -65,17 +65,16 @@ static struct torture_suite * torture_drs_unit_suite(TALLOC_CTX *mem_ctx,
 NTSTATUS torture_drs_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
-       TALLOC_CTX *mem_ctx = talloc_autofree_context();
 
        /* register RPC related test cases */
-       suite = torture_drs_rpc_suite(mem_ctx, "drs.rpc");
+       suite = torture_drs_rpc_suite(ctx, "drs.rpc");
        if (!suite) return NT_STATUS_NO_MEMORY;
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        /* register DRS Unit test cases */
-       suite = torture_drs_unit_suite(mem_ctx, "drs.unit");
+       suite = torture_drs_unit_suite(ctx, "drs.unit");
        if (!suite) return NT_STATUS_NO_MEMORY;
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index b6c811724bc0eac38364109a36f2374660f75629..2cf972cea6f0191007826c02db4f9133e0ce72e3 100644 (file)
@@ -687,7 +687,7 @@ static bool torture_krb5_as_req_aes_rc4(struct torture_context *tctx)
 
 NTSTATUS torture_krb5_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "krb5");
+       struct torture_suite *suite = torture_suite_create(ctx, "krb5");
        struct torture_suite *kdc_suite = torture_suite_create(suite, "kdc");
        suite->description = talloc_strdup(suite, "Kerberos tests");
        kdc_suite->description = talloc_strdup(kdc_suite, "Kerberos KDC tests");
@@ -719,6 +719,6 @@ NTSTATUS torture_krb5_init(TALLOC_CTX *ctx)
        torture_suite_add_suite(kdc_suite, torture_krb5_canon(kdc_suite));
        torture_suite_add_suite(suite, kdc_suite);
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
        return NT_STATUS_OK;
 }
index 29cb93d9e625a14ccf5c0370fa1a2d31acd3bff5..77fa8c34a95b72204236a01fc43c09a23f274ee9 100644 (file)
@@ -749,7 +749,7 @@ static bool torture_krb5_as_req_aes_rc4(struct torture_context *tctx)
 NTSTATUS torture_krb5_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite =
-               torture_suite_create(talloc_autofree_context(), "krb5");
+               torture_suite_create(ctx, "krb5");
        struct torture_suite *kdc_suite = torture_suite_create(suite, "kdc");
        suite->description = talloc_strdup(suite, "Kerberos tests");
        kdc_suite->description = talloc_strdup(kdc_suite, "Kerberos KDC tests");
@@ -788,7 +788,7 @@ NTSTATUS torture_krb5_init(TALLOC_CTX *ctx)
 
        torture_suite_add_suite(suite, kdc_suite);
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 50c5e033cb5dd0567f7a1c76b78bdc8444d56e39..9d53da4b01c222ac87a2b00d9a53f3988d659609 100644 (file)
@@ -131,7 +131,7 @@ NTSTATUS torture_ldap_close(struct ldap_connection *conn)
 
 NTSTATUS torture_ldap_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "ldap");
+       struct torture_suite *suite = torture_suite_create(ctx, "ldap");
        torture_suite_add_simple_test(suite, "bench-cldap", torture_bench_cldap);
        torture_suite_add_simple_test(suite, "basic", torture_ldap_basic);
        torture_suite_add_simple_test(suite, "sort", torture_ldap_sort);
@@ -144,7 +144,7 @@ NTSTATUS torture_ldap_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "LDAP and CLDAP tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 7b9c31a6daa330224dbe86ff991435578e3161c3..faf7bca1a5e27394fb0952cabc7c2dd50d5ab205 100644 (file)
@@ -27,7 +27,7 @@
 NTSTATUS torture_net_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "net");
+               ctx, "net");
 
        torture_suite_add_simple_test(suite, "userinfo", torture_userinfo);
        torture_suite_add_simple_test(suite, "useradd", torture_useradd);
@@ -64,7 +64,7 @@ NTSTATUS torture_net_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "libnet convenience interface tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 856b2c8f997b3c7e79f4490621f45b4daef60a1c..9d3973a2bb8b194db523bc6423d41df6b3b74ad6 100644 (file)
@@ -84,7 +84,7 @@ NTSTATUS torture_libnetapi_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
 
-       suite = torture_suite_create(talloc_autofree_context(), "netapi");
+       suite = torture_suite_create(ctx, "netapi");
 
        torture_suite_add_simple_test(suite, "server", torture_libnetapi_server);
        torture_suite_add_simple_test(suite, "group", torture_libnetapi_group);
@@ -93,7 +93,7 @@ NTSTATUS torture_libnetapi_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "libnetapi convenience interface tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index c714a975c7697e1e317ef6c0d07c56636af9a963..b93fda00b694b9d8e53a9062ad8778c35c3de35e 100644 (file)
@@ -205,7 +205,7 @@ NTSTATUS torture_libsmbclient_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite;
 
-       suite = torture_suite_create(talloc_autofree_context(), "libsmbclient");
+       suite = torture_suite_create(ctx, "libsmbclient");
 
        torture_suite_add_simple_test(suite, "version", torture_libsmbclient_version);
        torture_suite_add_simple_test(suite, "initialize", torture_libsmbclient_initialize);
@@ -215,7 +215,7 @@ NTSTATUS torture_libsmbclient_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "libsmbclient interface tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index e7231524a5167e51170664ab4e554af77bfdc922..d1c523bdc1f64411e18bcf93687622c88d5f6bdf 100644 (file)
@@ -83,7 +83,7 @@ NTSTATUS torture_local_init(TALLOC_CTX *ctx)
 {
        int i;
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "local");
+               ctx, "local");
        
        torture_suite_add_simple_test(suite, "talloc", torture_local_talloc);
        torture_suite_add_simple_test(suite, "replace", torture_local_replace);
@@ -103,12 +103,12 @@ NTSTATUS torture_local_init(TALLOC_CTX *ctx)
 
        for (i = 0; suite_generators[i]; i++)
                torture_suite_add_suite(suite,
-                                       suite_generators[i](talloc_autofree_context()));
+                                       suite_generators[i](ctx));
        
        suite->description = talloc_strdup(suite, 
                                           "Local, Samba-specific tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 979f16e566680d60f0995d70d533948c803b0225..8e4a984c9b5fa01413e327343ccec144702aa830 100644 (file)
@@ -287,12 +287,12 @@ bool torture_nbench(struct torture_context *torture)
 NTSTATUS torture_nbench_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-                                                  talloc_autofree_context(), "bench");
+                                                  ctx, "bench");
 
        torture_suite_add_simple_test(suite, "nbench", torture_nbench);
 
        suite->description = talloc_strdup(suite, "Benchmarks");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
        return NT_STATUS_OK;
 }
index ac53c9167c57c90039b8f8ebd711f43efa9aba00..f350885ed49969b76d3c3877bab20c7d26dce6dd 100644 (file)
@@ -51,7 +51,7 @@ bool torture_nbt_get_name(struct torture_context *tctx,
 NTSTATUS torture_nbt_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "nbt");
+               ctx, "nbt");
        /* nbt tests */
        torture_suite_add_suite(suite, torture_nbt_register(suite));
        torture_suite_add_suite(suite, torture_nbt_wins(suite));
@@ -63,7 +63,7 @@ NTSTATUS torture_nbt_init(TALLOC_CTX *ctx)
        suite->description = talloc_strdup(suite, 
                                         "NetBIOS over TCP/IP and WINS tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 1963e5732461d44fef3dbba8000623c8d95bc2c6..d2a41819fcfc2cb009215999e16d87ac504ac2d6 100644 (file)
@@ -286,7 +286,7 @@ static bool test_ntp_signd(struct torture_context *tctx,
 
 NTSTATUS torture_ntp_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "ntp");
+       struct torture_suite *suite = torture_suite_create(ctx, "ntp");
        struct torture_rpc_tcase *tcase;
 
        tcase = torture_suite_add_machine_workstation_rpc_iface_tcase(suite,
@@ -296,7 +296,7 @@ NTSTATUS torture_ntp_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "NTP tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 043154b46211b436e6eef2751a0f7f2502f903c4..054e01141e07beb9cb39564696234af0d63da5c3 100644 (file)
@@ -243,7 +243,7 @@ bool torture_rap_scan(struct torture_context *torture, struct smbcli_state *cli)
 
 NTSTATUS torture_rap_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "rap");
+       struct torture_suite *suite = torture_suite_create(ctx, "rap");
        struct torture_suite *suite_basic = torture_suite_create(suite, "basic");
 
        torture_suite_add_suite(suite, suite_basic);
@@ -269,7 +269,7 @@ NTSTATUS torture_rap_init(TALLOC_CTX *ctx)
        suite->description = talloc_strdup(suite, 
                                                "Remote Administration Protocol tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
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;
 }
index 12dcced1e2afda7399f3a161d8ad8f20b80fe19f..36148cce7fdca2a4af276302aa070ebfef14f90a 100644 (file)
@@ -484,7 +484,7 @@ _PUBLIC_ struct torture_test *torture_rpc_tcase_add_test_ex(
 
 NTSTATUS torture_rpc_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "rpc");
+       struct torture_suite *suite = torture_suite_create(ctx, "rpc");
 
        ndr_table_init();
 
@@ -570,7 +570,7 @@ NTSTATUS torture_rpc_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "DCE/RPC protocol and interface tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 3c3c22a43f3b3ab6a28426fd8dfdb6a531139545..043372f8d883367db6e9193865cfd596017e435b 100644 (file)
@@ -145,7 +145,7 @@ struct torture_test *torture_suite_add_2smb2_test(struct torture_suite *suite,
 
 NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "smb2");
+       struct torture_suite *suite = torture_suite_create(ctx, "smb2");
        torture_suite_add_simple_test(suite, "connect", torture_smb2_connect);
        torture_suite_add_suite(suite, torture_smb2_scan_init());
        torture_suite_add_suite(suite, torture_smb2_getinfo_init());
@@ -180,7 +180,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "SMB2-specific tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 7480f241d9772d042a3658f7ee3bd72f00168e9c..5a75f06bce53039745bf553d3ac15067184d5fed 100644 (file)
@@ -35,7 +35,7 @@ extern int torture_numasync;
 
 struct torture_test;
 int torture_init(TALLOC_CTX *);
-bool torture_register_suite(struct torture_suite *suite);
+bool torture_register_suite(TALLOC_CTX *, struct torture_suite *suite);
 void torture_shell(struct torture_context *tctx);
 void torture_print_testsuites(bool structured);
 bool torture_run_named_tests(struct torture_context *torture, const char *name,
index 3ef1f3b49ba199ba495032c20b79e3c965cedebd..cc29ffad09af63b2a02f7a7bf50842f237f9726a 100644 (file)
@@ -33,13 +33,13 @@ _PUBLIC_ int torture_numasync=100;
 
 struct torture_suite *torture_root = NULL;
 
-bool torture_register_suite(struct torture_suite *suite)
+bool torture_register_suite(TALLOC_CTX *mem_ctx, struct torture_suite *suite)
 {
        if (!suite)
                return true;
 
        if (torture_root == NULL)
-               torture_root = talloc_zero(talloc_autofree_context(), struct torture_suite);
+               torture_root = talloc_zero(mem_ctx, struct torture_suite);
 
        return torture_suite_add_suite(torture_root, suite);
 }
index 0ea1b51f9bcad42fa546d065d21648f837e72a4d..8ee3d8ddf75d524a1f7aa502caac7f4b5192bfc2 100644 (file)
@@ -24,7 +24,7 @@
 NTSTATUS torture_unix_init(TALLOC_CTX *ctx)
 {
         struct torture_suite *suite =
-                torture_suite_create(talloc_autofree_context(), "unix");
+                torture_suite_create(ctx, "unix");
 
         suite->description =
                 talloc_strdup(suite, "CIFS UNIX extensions tests");
@@ -34,7 +34,7 @@ NTSTATUS torture_unix_init(TALLOC_CTX *ctx)
        torture_suite_add_simple_test(suite,
                        "info2", unix_torture_unix_info2);
 
-        return (torture_register_suite(suite)) ? NT_STATUS_OK
+        return (torture_register_suite(ctx, suite)) ? NT_STATUS_OK
                                         : NT_STATUS_UNSUCCESSFUL;
 
 }
index 8c1f1ff6f40178569528841de3cc930a1c9ce379..e16757643f54f513014c42118d03e93b70264a10 100644 (file)
@@ -104,7 +104,7 @@ struct torture_test *torture_suite_add_2ns_smb2_test(struct torture_suite *suite
 NTSTATUS torture_vfs_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "vfs");
+               ctx, "vfs");
 
        suite->description = talloc_strdup(suite, "VFS modules tests");
 
@@ -113,7 +113,7 @@ NTSTATUS torture_vfs_init(TALLOC_CTX *ctx)
        torture_suite_add_suite(suite, torture_acl_xattr());
        torture_suite_add_suite(suite, torture_vfs_fruit_file_id());
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }
index 74de381972296a013c2094d51a5def90ccbedda5..d05918ae1e63e226b617ebf5274a0a218a1c7f5c 100644 (file)
@@ -292,12 +292,12 @@ static bool torture_winbind_pac_krb5(struct torture_context *tctx)
 
 NTSTATUS torture_winbind_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "winbind");
+       struct torture_suite *suite = torture_suite_create(ctx, "winbind");
        struct torture_suite *pac_suite;
        torture_suite_add_suite(suite, torture_winbind_struct_init());
        torture_suite_add_suite(suite, torture_wbclient());
 
-       pac_suite = torture_suite_create(talloc_autofree_context(), "pac");
+       pac_suite = torture_suite_create(ctx, "pac");
        torture_suite_add_simple_test(pac_suite,
                                      "GSSAPI", torture_winbind_pac_gssapi);
        torture_suite_add_simple_test(pac_suite,
@@ -311,7 +311,7 @@ NTSTATUS torture_winbind_init(TALLOC_CTX *ctx)
 
        suite->description = talloc_strdup(suite, "WINBIND tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }