summaryrefslogtreecommitdiff
path: root/source4/torture/vfs
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-10-11 16:04:58 +0200
committerRalph Boehme <slow@samba.org>2017-10-13 21:44:01 +0200
commit5f52a0fbe8c9f52c6fed206fd5cd47bd0de867a1 (patch)
tree5b9688dbeeabfa9a4c32a7c7d0572872dd5c62e5 /source4/torture/vfs
parentc5b25d40e1ab3906805538abdb8f07a934c629f7 (diff)
downloadsamba-5f52a0fbe8c9f52c6fed206fd5cd47bd0de867a1.tar.gz
s4/torture: vfs_fruit: test xattr unpacking
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13076 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Fri Oct 13 21:44:02 CEST 2017 on sn-devel-144
Diffstat (limited to 'source4/torture/vfs')
-rw-r--r--source4/torture/vfs/fruit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
index b788f81e78c..ace561d0d9c 100644
--- a/source4/torture/vfs/fruit.c
+++ b/source4/torture/vfs/fruit.c
@@ -2036,6 +2036,11 @@ static bool test_adouble_conversion(struct torture_context *tctx,
fname, AFPRESOURCE_STREAM,
16, datalen, 0, datalen, data);
+ ret &= check_stream(tree, __location__, tctx, mem_ctx,
+ fname,
+ ":foo" "\xef\x80\xa2" "bar:$DATA", /* "foo:bar:$DATA" */
+ 0, 3, 0, 3, "baz");
+
done:
smb2_deltree(tree, BASEDIR);
talloc_free(mem_ctx);