From: Stefan Metzmacher Date: Fri, 15 Feb 2019 14:30:29 +0000 (+0100) Subject: s4:torture/smb2/notify: make use of torture_setup_simple_file() in test_valid_request() X-Git-Tag: tdb-1.4.1~589 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6fce7c0cb126e4ac79bceda77a50c4d65c093fd;p=thirdparty%2Fsamba.git s4:torture/smb2/notify: make use of torture_setup_simple_file() in test_valid_request() There's no reason to use torture_setup_complex_file(), when we want to test notify code. The test pass fine against Samba this way and don't fail because of unrelated timestamp behavior. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13864 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 127f0c685f7..a610fc62bd7 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -114,7 +114,7 @@ static bool test_valid_request(struct torture_context *torture, } } - status = torture_setup_complex_file(torture, tree, FNAME); + status = torture_setup_simple_file(torture, tree, FNAME); CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); @@ -136,7 +136,7 @@ static bool test_valid_request(struct torture_context *torture, } } - status = torture_setup_complex_file(torture, tree, FNAME); + status = torture_setup_simple_file(torture, tree, FNAME); CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); @@ -155,7 +155,7 @@ static bool test_valid_request(struct torture_context *torture, } } - status = torture_setup_complex_file(torture, tree, FNAME); + status = torture_setup_simple_file(torture, tree, FNAME); CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); @@ -187,7 +187,7 @@ static bool test_valid_request(struct torture_context *torture, } } - status = torture_setup_complex_file(torture, tree, FNAME); + status = torture_setup_simple_file(torture, tree, FNAME); CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n); @@ -201,7 +201,7 @@ static bool test_valid_request(struct torture_context *torture, } } - status = torture_setup_complex_file(torture, tree, FNAME); + status = torture_setup_simple_file(torture, tree, FNAME); CHECK_STATUS(status, NT_STATUS_OK); status = smb2_notify_recv(req, torture, &n);