From: Stefan Metzmacher Date: Tue, 3 Jun 2008 12:01:02 +0000 (+0200) Subject: BASE-DELAYWRITE: fix test on filesystem without high resolution timestamps X-Git-Tag: samba-4.0.0alpha5~82^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fde9880f9943897549859037b0fc9341d3a032f7;p=thirdparty%2Fsamba.git BASE-DELAYWRITE: fix test on filesystem without high resolution timestamps metze --- diff --git a/source/torture/basic/delaywrite.c b/source/torture/basic/delaywrite.c index 0e226b788d1..c7bccae08f8 100644 --- a/source/torture/basic/delaywrite.c +++ b/source/torture/basic/delaywrite.c @@ -641,7 +641,7 @@ static bool test_finfo_after_write(struct torture_context *tctx, struct smbcli_s bool err = false; \ if (strict && (g cmp c)) { \ err = true; \ - } else if (gr cmp cr) { \ + } else if ((g cmp c) && (gr cmp cr)) { \ /* handle filesystem without high resolution timestamps */ \ err = true; \ } \