BASE-DELAYWRITE: add missing time checks to make sure the server has updated the...
authorStefan Metzmacher <metze@samba.org>
Mon, 5 May 2008 13:05:41 +0000 (15:05 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 3 Jun 2008 09:17:17 +0000 (11:17 +0200)
metze

source/torture/basic/delaywrite.c

index 84adfef61adba42bb7801e0e5c7ec028f328e2fb..0e226b788d14f9eea0040f26ba3c4c7dbcb61fcb 100644 (file)
@@ -828,6 +828,7 @@ static bool test_delayed_write_update3(struct torture_context *tctx,
        }
 
        GET_INFO_BOTH(finfo1,pinfo1);
+       COMPARE_WRITE_TIME_GREATER(pinfo1, pinfo0);
 
        /* sure any further write doesn't update the write time */
        start = timeval_current();
@@ -982,6 +983,7 @@ static bool test_delayed_write_update4(struct torture_context *tctx,
        }
 
        GET_INFO_BOTH(finfo1,pinfo1);
+       COMPARE_WRITE_TIME_GREATER(pinfo1, pinfo0);
 
        /* sure any further write doesn't update the write time */
        start = timeval_current();