From: Stefan Metzmacher Date: Mon, 5 May 2008 13:05:41 +0000 (+0200) Subject: BASE-DELAYWRITE: add missing time checks to make sure the server has updated the... X-Git-Tag: samba-4.0.0alpha5~82^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c004df8910c07d75bb3f75d7c3cfba9f9c94f51;p=thirdparty%2Fsamba.git BASE-DELAYWRITE: add missing time checks to make sure the server has updated the write time metze --- diff --git a/source/torture/basic/delaywrite.c b/source/torture/basic/delaywrite.c index 84adfef61ad..0e226b788d1 100644 --- a/source/torture/basic/delaywrite.c +++ b/source/torture/basic/delaywrite.c @@ -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();