s4/torture: vfs_fruit: test xattr unpacking
authorRalph Boehme <slow@samba.org>
Wed, 11 Oct 2017 14:04:58 +0000 (16:04 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 13 Oct 2017 19:44:01 +0000 (21:44 +0200)
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

source4/torture/vfs/fruit.c

index b788f81e78c526eaea4eed94bdbb122c2d34d7d0..ace561d0d9cfe339978ac239e65dd085c0e6afdf 100644 (file)
@@ -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);