From f94ce3a59d2c0433282b7c794a2a034a74d6586c Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sun, 13 Apr 2008 11:21:54 +0200 Subject: [PATCH] t5503: Mark tests as broken on MinGW The tests fail on MinGW because GIT_DEBUG_SEND_PACK is not supported. See http://article.gmane.org/gmane.comp.version-control.msysgit/1992 These failures are marked known breakages. A check for MINGW is added in front of each test marked, although the first check would be sufficient. Adding the check multiple times, however, allows to remove the checks independently of each other. Signed-off-by: Steffen Prohaska --- t/t5503-tagfollow.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/t/t5503-tagfollow.sh b/t/t5503-tagfollow.sh index 86e5b9bc26..f6828281bd 100755 --- a/t/t5503-tagfollow.sh +++ b/t/t5503-tagfollow.sh @@ -41,7 +41,12 @@ cat - <expect want $A #E EOF -test_expect_success 'fetch A (new commit : 1 connection)' ' + +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'fetch A (new commit : 1 connection)' ' rm -f $U ( cd cloned && @@ -71,7 +76,11 @@ want $C want $T #E EOF -test_expect_success 'fetch C, T (new branch, tag : 1 connection)' ' +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'fetch C, T (new branch, tag : 1 connection)' ' rm -f $U ( cd cloned && @@ -107,7 +116,11 @@ want $B want $S #E EOF -test_expect_success 'fetch B, S (commit and tag : 1 connection)' ' +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'fetch B, S (commit and tag : 1 connection)' ' rm -f $U ( cd cloned && @@ -127,7 +140,11 @@ want $B want $S #E EOF -test_expect_success 'new clone fetch master and tags' ' +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'new clone fetch master and tags' ' git branch -D cat rm -f $U (