From: Michael Adam Date: Wed, 13 May 2020 08:15:11 +0000 (+0530) Subject: s4/torture: Unlink test file at the beginning of smb2.read.position X-Git-Tag: ldb-2.2.0~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbfc197f65f28c7f4e889045d7b04c46c4f6680d;p=thirdparty%2Fsamba.git s4/torture: Unlink test file at the beginning of smb2.read.position Pair-Programmed-With: Anoop C S Signed-off-by: Michael Adam Reviewed-by: Guenther Deschner Autobuild-User(master): Günther Deschner Autobuild-Date(master): Fri May 15 16:02:47 UTC 2020 on sn-devel-184 --- diff --git a/source4/torture/smb2/read.c b/source4/torture/smb2/read.c index b26bc18ddac..2899a491663 100644 --- a/source4/torture/smb2/read.c +++ b/source4/torture/smb2/read.c @@ -143,6 +143,8 @@ static bool test_read_position(struct torture_context *torture, struct smb2_tree ZERO_STRUCT(buf); + smb2_util_unlink(tree, FNAME); + status = torture_smb2_testfile(tree, FNAME, &h); CHECK_STATUS(status, NT_STATUS_OK);