Move the sleep to workaround the default modify-window of 1 on Cygwin to
authorDavid Dykstra <dwd@samba.org>
Mon, 27 Jan 2003 04:41:30 +0000 (04:41 +0000)
committerDavid Dykstra <dwd@samba.org>
Mon, 27 Jan 2003 04:41:30 +0000 (04:41 +0000)
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.

testsuite/rsync.fns

index 0dab773..5e76538 100644 (file)
@@ -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