summaryrefslogtreecommitdiff
path: root/source4/torture/basic/delaywrite.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-02 15:52:57 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-10-03 08:34:05 +0200
commit32dee459dc45e89d6bf33e9a881c936971f07087 (patch)
treea2f1cba8d7bb911a836b75181f83c468b0b90f8f /source4/torture/basic/delaywrite.c
parent4808e3d3ee292da765a75a19ba0ad3f3af70ed0b (diff)
downloadsamba-32dee459dc45e89d6bf33e9a881c936971f07087.tar.gz
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>
Diffstat (limited to 'source4/torture/basic/delaywrite.c')
-rw-r--r--source4/torture/basic/delaywrite.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c
index 8294fea2792..759f68ec774 100644
--- a/source4/torture/basic/delaywrite.c
+++ b/source4/torture/basic/delaywrite.c
@@ -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);