s4: torture: Add TALLOC_CTX * to torture_winbind_init().
[sfrench/samba-autobuild/.git] / nsswitch / libwbclient / tests / wbclient.c
index b3c93a199c41941143755a9c61ac70781d1a4e1a..c5428afac43be61311116bed591e9d3a8fcf23ed 100644 (file)
@@ -925,9 +925,9 @@ static bool test_wbc_getgroups(struct torture_context *tctx)
        return true;
 }
 
-struct torture_suite *torture_wbclient(void)
+struct torture_suite *torture_wbclient(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "wbclient");
+       struct torture_suite *suite = torture_suite_create(ctx, "wbclient");
 
        torture_suite_add_simple_test(suite, "wbcPing", test_wbc_ping);
        torture_suite_add_simple_test(suite, "wbcPingDc", test_wbc_pingdc);