]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/vfs/fruit: decrease large resource fork size in test from 1 GB to 64 MB
authorRalph Boehme <slow@samba.org>
Fri, 18 May 2018 23:36:21 +0000 (01:36 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 12 Jul 2018 11:10:25 +0000 (13:10 +0200)
64 MB is a more realistic value and lets the test pass on FreeBSD with
fruit:resource=stream and vfs_streams_xattr.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2729b4329af0ad0b6a8bd188450b8abd76670d8a)

source4/torture/vfs/fruit.c

index 65109cc193445115cfc5ab8343747f270e4f6c99..21cc6851cbfc265d3c7920bd8e9aa4f1d4924498 100644 (file)
@@ -1594,11 +1594,11 @@ static bool test_write_atalk_rfork_io(struct torture_context *tctx,
 
        ret &= write_stream(tree, __location__, tctx, mem_ctx,
                            fname, AFPRESOURCE_STREAM_NAME,
-                           (off_t)1<<32, 10, rfork_content);
+                           (off_t)64*1024*1024, 10, rfork_content);
 
        ret &= check_stream(tree, __location__, tctx, mem_ctx,
                            fname, AFPRESOURCE_STREAM_NAME,
-                           (off_t)1<<32, 10, 0, 10, rfork_content);
+                           (off_t)64*1024*1024, 10, 0, 10, rfork_content);
 
        /* Truncate back to size of 1 byte */