summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2003-01-27 04:41:30 +0000
committerDavid Dykstra <dwd@samba.org>2003-01-27 04:41:30 +0000
commit59af13651b56a5958dadf9949cb7388abf4ffce7 (patch)
tree87015751376c0f743a73b44da1d7edaa9d0f9366
parent787568f3719e0f80881fdf2124e11dc97c827ec4 (diff)
downloadrsync-59af13651b56a5958dadf9949cb7388abf4ffce7.tar.gz
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.
-rw-r--r--testsuite/rsync.fns8
1 files changed, 4 insertions, 4 deletions
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