mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
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 <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4ffb517ffd
commit
d6fce7c0cb
@ -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);
|
CHECK_STATUS(status, NT_STATUS_OK);
|
||||||
|
|
||||||
status = smb2_notify_recv(req, torture, &n);
|
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);
|
CHECK_STATUS(status, NT_STATUS_OK);
|
||||||
|
|
||||||
status = smb2_notify_recv(req, torture, &n);
|
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);
|
CHECK_STATUS(status, NT_STATUS_OK);
|
||||||
|
|
||||||
status = smb2_notify_recv(req, torture, &n);
|
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);
|
CHECK_STATUS(status, NT_STATUS_OK);
|
||||||
|
|
||||||
status = smb2_notify_recv(req, torture, &n);
|
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);
|
CHECK_STATUS(status, NT_STATUS_OK);
|
||||||
|
|
||||||
status = smb2_notify_recv(req, torture, &n);
|
status = smb2_notify_recv(req, torture, &n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user