git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] "sleep 1" sleeps too little on cygwin
@ 2006-01-17 11:25 Alex Riesen
  2006-01-18  1:41 ` Junio C Hamano
  2006-01-18  8:53 ` Junio C Hamano
  0 siblings, 2 replies; 22+ messages in thread
From: Alex Riesen @ 2006-01-17 11:25 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Probably another one windows quirk, or just the moon phases,
but I have to make damn sure it sleeps long enough.

[-- Attachment #2: cygwin-sleeps-too-little.patch --]
[-- Type: text/x-patch, Size: 530 bytes --]

diff --git a/t/t4011-diff-symlink.sh b/t/t4011-diff-symlink.sh
index e3ebf38..8c5b614 100755
--- a/t/t4011-diff-symlink.sh
+++ b/t/t4011-diff-symlink.sh
@@ -56,10 +56,11 @@ cat > expected << EOF
 diff --git a/frotz b/frotz
 EOF
 
+secs="$SECONDS"
+while [ "$SECONDS" = "$secs" ]; do sleep 1; done
 test_expect_success \
     'diff identical, but newly created symlink' \
-    'sleep 1 &&
-    ln -s xyzzy frotz &&
+    'ln -s xyzzy frotz &&
     git-diff-index -M -p $tree > current &&
     compare_diff_patch current expected'
 

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2006-01-20 15:41 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 11:25 [PATCH] "sleep 1" sleeps too little on cygwin Alex Riesen
2006-01-18  1:41 ` Junio C Hamano
2006-01-18 13:50   ` Alex Riesen
2006-01-18 16:55     ` Junio C Hamano
2006-01-19  5:18   ` Christopher Faylor
2006-01-18  8:53 ` Junio C Hamano
2006-01-18 11:35   ` Johannes Schindelin
2006-01-18 17:00     ` Junio C Hamano
2006-01-18 18:52       ` Alex Riesen
2006-01-19  1:18         ` Junio C Hamano
2006-01-19  5:20           ` Christopher Faylor
2006-01-19 15:01           ` Alex Riesen
2006-01-19 18:24             ` Junio C Hamano
2006-01-19 22:13               ` Alex Riesen
2006-01-20  1:13                 ` Junio C Hamano
2006-01-19 18:28             ` Christopher Faylor
2006-01-19 22:12               ` Alex Riesen
2006-01-19 22:25                 ` Christopher Faylor
2006-01-20  1:13                   ` Junio C Hamano
2006-01-20  3:35                     ` Christopher Faylor
2006-01-20 15:23                       ` Alex Riesen
2006-01-20 15:40                         ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).