s4: torture: Add a TALLOC_CTX * to torture_acl_xattr().
authorJeremy Allison <jra@samba.org>
Mon, 24 Apr 2017 22:46:47 +0000 (15:46 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 5 May 2017 13:52:13 +0000 (15:52 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source4/torture/vfs/acl_xattr.c
source4/torture/vfs/vfs.c

index 676d01221b0d07aaa75f3b86764368cf6b68a8fd..d1285d4b0c9139c03f2600259d79d64a5f6f9f08 100644 (file)
@@ -303,9 +303,9 @@ done:
 /*
    basic testing of vfs_acl_xattr
 */
-struct torture_suite *torture_acl_xattr(void)
+struct torture_suite *torture_acl_xattr(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "acl_xattr");
+       struct torture_suite *suite = torture_suite_create(ctx, "acl_xattr");
 
        torture_suite_add_1smb2_test(suite, "default-acl-style-posix", test_default_acl_posix);
        torture_suite_add_1smb2_test(suite, "default-acl-style-windows", test_default_acl_win);
index e16757643f54f513014c42118d03e93b70264a10..fef74915e90ed0ad8504fb1d649558023a868000 100644 (file)
@@ -110,7 +110,7 @@ NTSTATUS torture_vfs_init(TALLOC_CTX *ctx)
 
        torture_suite_add_suite(suite, torture_vfs_fruit());
        torture_suite_add_suite(suite, torture_vfs_fruit_netatalk());
-       torture_suite_add_suite(suite, torture_acl_xattr());
+       torture_suite_add_suite(suite, torture_acl_xattr(suite));
        torture_suite_add_suite(suite, torture_vfs_fruit_file_id());
 
        torture_register_suite(ctx, suite);