From: Jones Syue Date: Fri, 30 Mar 2018 00:31:06 +0000 (+0800) Subject: s4:torture: kernel oplocks. Fix assertion warning X-Git-Tag: talloc-2.1.13~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ffc91813722c71f2dc4e6f3a8b3b4a2afc2e70b;p=thirdparty%2Fsamba.git s4:torture: kernel oplocks. Fix assertion warning Simply boolean 'ret' instead of 'ret = true'. Signed-off-by: Jones Syue Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Fri Mar 30 18:39:19 CEST 2018 on sn-devel-144 --- diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c index 87d7d2ff946..cb1b5edddfe 100644 --- a/source4/torture/smb2/oplock.c +++ b/source4/torture/smb2/oplock.c @@ -5032,7 +5032,7 @@ static bool test_smb2_kernel_oplocks8(struct torture_context *tctx, /* Take the oplock locally in a sub-process. */ ret = wait_for_child_oplock(tctx, localdir, fname); - torture_assert_goto(tctx, ret = true, ret, done, + torture_assert_goto(tctx, ret, ret, done, "Wait for child process failed.\n"); /*