]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
BASE-DELAYWRITE: fix test on filesystem without high resolution timestamps
authorStefan Metzmacher <metze@samba.org>
Tue, 3 Jun 2008 12:01:02 +0000 (14:01 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 3 Jun 2008 12:03:49 +0000 (14:03 +0200)
metze

source/torture/basic/delaywrite.c

index 0e226b788d14f9eea0040f26ba3c4c7dbcb61fcb..c7bccae08f8cee2caa16d73f95f740230115f66b 100644 (file)
@@ -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; \
        } \