From: Alex Riesen Date: Tue, 17 Jan 2006 11:25:37 GMT Subject: [PATCH] "sleep 1" sleeps too little on cygwin Message-ID: <81b0412b0601170325y60094b4w693ac37490c67410@mail.gmail.com> Probably another one windows quirk, or just the moon phases, but I have to make damn sure it sleeps long enough. 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'