From: David Dykstra Date: Mon, 27 Jan 2003 04:41:30 +0000 (+0000) Subject: Move the sleep to workaround the default modify-window of 1 on Cygwin to X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/59af13651b56a5958dadf9949cb7388abf4ffce7 Move the sleep to workaround the default modify-window of 1 on Cygwin to the beginning of "checkit" rather than the end of "hands_setup" because sometimes files are modified just before checkit is called and the copy finishes within one second so they're considered to be the same time. I don't think this would be a problem in real life, so just change the test. --- diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 0dab7733..5e765389 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -99,10 +99,6 @@ hands_setup() { # echo testing head: # ls -lR ${srcdir} | head -10 || echo failed - - # sleep here to prevent a copy from being made within the - # default --modify-window time on Cygwin - sleep 2 } @@ -144,6 +140,10 @@ makepath () { # should be excluded, you might need to use something else. checkit() { + # sleep here to prevent a copy from being made within the + # default --modify-window time on Cygwin + sleep 2 + failed= # We can just write everything to stdout/stderr, because the