diff options
author | Michael Adam <obnox@samba.org> | 2014-10-02 17:09:18 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-03 08:34:06 +0200 |
commit | 874788f4ce8f6d508f2327dfd93de07921d20d05 (patch) | |
tree | 04c74a52dbed31c29455fed472a1ded1bd1e48b6 /source4/torture/basic | |
parent | 884f7476785a519772c5f871704159207c19847b (diff) | |
download | samba-874788f4ce8f6d508f2327dfd93de07921d20d05.tar.gz samba-874788f4ce8f6d508f2327dfd93de07921d20d05.tar.xz samba-874788f4ce8f6d508f2327dfd93de07921d20d05.zip |
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.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c index df90e40007..63bfa829ca 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); |