1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

s4:torture:basic: add update into past as error condition in delayed_write_update1

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Michael Adam 2014-10-02 15:52:57 +02:00 committed by Andrew Bartlett
parent 4808e3d3ee
commit 32dee459dc

View File

@ -260,9 +260,12 @@ static bool test_delayed_write_update1(struct torture_context *tctx, struct smbc
finfo3.all_info.out.write_time,
"Server did not update write time on "
"close (wrong!)");
if (finfo3.all_info.out.write_time < pinfo4.all_info.out.write_time) {
torture_comment(tctx, "Server updated write time on close (correct)\n");
}
torture_assert(tctx,
pinfo4.all_info.out.write_time > finfo3.all_info.out.write_time,
"Server updated write time on close, but to an earlier point "
"in time");
torture_comment(tctx, "Server updated write time on close (correct)\n");
if (fnum1 != -1)
smbcli_close(cli->tree, fnum1);