diff options
author | Michael Adam <obnox@samba.org> | 2014-10-02 16:44:34 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-03 08:34:06 +0200 |
commit | 339f2fb589a9edcc26125d9cfa43035568a041e3 (patch) | |
tree | 3602dc94a1eb81b8f725ee3fc6466d7e0f51be20 /source4/torture/basic | |
parent | dbb3a546a5cc7919c08782489b5a1b24a4a22c53 (diff) | |
download | samba-339f2fb589a9edcc26125d9cfa43035568a041e3.tar.gz |
s4:torture:basic: add update into past as error condition in delayed_write_update1b
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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/basic/delaywrite.c b/source4/torture/basic/delaywrite.c index 7f5828428f6..c8e7e834b30 100644 --- a/source4/torture/basic/delaywrite.c +++ b/source4/torture/basic/delaywrite.c @@ -582,9 +582,12 @@ static bool test_delayed_write_update1b(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"); + + torture_comment(tctx, "Server updated write time on close (correct)\n"); if (fnum1 != -1) smbcli_close(cli->tree, fnum1); |