git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35d9e7
)
s4:torture/vfs/fruit: write some data to a just created teststream
author
Ralph Boehme
<slow@samba.org>
Sat, 20 Oct 2018 12:52:23 +0000
(14:52 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 31 Oct 2018 20:27:20 +0000
(21:27 +0100)
Doesn't currently make a difference, but this prepares for a later
change in vfs_fruit that will filter out empty streams (which is the
macOS behaviour).
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/vfs/fruit.c
patch
|
blob
|
history
diff --git
a/source4/torture/vfs/fruit.c
b/source4/torture/vfs/fruit.c
index ebe11bc44db66b4fd6bbc2446de87097ae772f5b..2742e568da4ed679f69c59e39837eceb4171b95a 100644
(file)
--- a/
source4/torture/vfs/fruit.c
+++ b/
source4/torture/vfs/fruit.c
@@
-5282,6
+5282,11
@@
static bool test_stream_names_local(struct torture_context *tctx,
status = smb2_create(tree, mem_ctx, &create);
CHECK_STATUS(status, NT_STATUS_OK);
+
+ status = smb2_util_write(tree, create.out.file.handle, "foo", 0, 3);
+ torture_assert_ntstatus_ok_goto(tctx, status, ret, done,
+ "smb2_util_write failed\n");
+
smb2_util_close(tree, create.out.file.handle);
ret = torture_setup_local_xattr(tctx, "localdir", BASEDIR "/stream_names.txt",