From: Ralph Boehme Date: Fri, 17 Nov 2017 11:41:49 +0000 (+0100) Subject: s4/torture: use torture_assert_goto in a vfs.fruit test X-Git-Tag: samba-4.6.12~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79b3ea5797af45441d4f27aa68845c7be6b2576b;p=thirdparty%2Fsamba.git s4/torture: use torture_assert_goto in a vfs.fruit test No change in behavior. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13155 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 9af9c5c073d88b126aebd4a2d7a1a1971527fbf4) --- diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index c5ee7af3bc1..16b64772296 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -2032,14 +2032,17 @@ static bool test_adouble_conversion(struct torture_context *tctx, torture_comment(tctx, "(%s) test OS X AppleDouble conversion\n", __location__); - ret &= check_stream(tree, __location__, tctx, mem_ctx, - fname, AFPRESOURCE_STREAM, - 16, datalen, 0, datalen, data); + ret = check_stream(tree, __location__, tctx, mem_ctx, + fname, AFPRESOURCE_STREAM, + 16, datalen, 0, datalen, data); + torture_assert_goto(tctx, ret == true, ret, done, + "check AFPRESOURCE_STREAM failed\n"); - ret &= check_stream(tree, __location__, tctx, mem_ctx, - fname, - ":foo" "\xef\x80\xa2" "bar:$DATA", /* "foo:bar:$DATA" */ - 0, 3, 0, 3, "baz"); + ret = check_stream(tree, __location__, tctx, mem_ctx, fname, + ":foo" "\xef\x80\xa2" "bar:$DATA", /* "foo:bar:$DATA" */ + 0, 3, 0, 3, "baz"); + torture_assert_goto(tctx, ret == true, ret, done, + "check foo:bar stream failed\n"); done: smb2_deltree(tree, BASEDIR);