From 3ffc91813722c71f2dc4e6f3a8b3b4a2afc2e70b Mon Sep 17 00:00:00 2001 From: Jones Syue Date: Fri, 30 Mar 2018 08:31:06 +0800 Subject: [PATCH] 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 --- source4/torture/smb2/oplock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); /* -- 2.11.4.GIT