summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-02 17:09:18 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-03 08:34:06 +0200
commit874788f4ce8f6d508f2327dfd93de07921d20d05 (patch)
tree04c74a52dbed31c29455fed472a1ded1bd1e48b6 /source4/torture/basic
parent884f7476785a519772c5f871704159207c19847b (diff)
downloadsamba-874788f4ce8f6d508f2327dfd93de07921d20d05.tar.gz
s4:torture:basic: add update into past as error condition in delayed_write_update1c
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/torture/basic')
-rw-r--r--source4/torture/basic/delaywrite.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c
index df90e400073..63bfa829ca1 100644
--- a/source4/torture/basic/delaywrite.c
+++ b/source4/torture/basic/delaywrite.c
@@ -744,9 +744,10 @@ static bool test_delayed_write_update1c(struct torture_context *tctx, struct smb
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");
if (fnum1 != -1)
smbcli_close(cli->tree, fnum1);