From fe3238dc4c870cb865bd2862f317afeb35018267 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sun, 13 Apr 2008 11:21:54 +0200 Subject: [PATCH] t3903: Mark tests as broken on MinGW MinGW's bash eats curly braces in "git stash drop stash@{1}". This causes two tests in t3903 to fail. Those breakages are marked expected. You can work around the breakage by escaping the curly braces as "git stash drop stash@\\{1\\}". 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/t3903-stash.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh index 2d3ee3b78c..0858aadb87 100755 --- a/t/t3903-stash.sh +++ b/t/t3903-stash.sh @@ -88,7 +88,11 @@ test_expect_success 'drop top stash' ' test 1 = $(git show HEAD:file) ' -test_expect_success 'drop middle stash' ' +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'drop middle stash' ' git reset --hard && echo 8 > file && git stash && @@ -108,7 +112,11 @@ test_expect_success 'drop middle stash' ' test 1 = $(git show HEAD:file) ' -test_expect_success 'stash pop' ' +case $(uname -s) in +*MINGW*) test_expect=test_expect_failure;; +*) test_expect=test_expect_success;; +esac +$test_expect 'stash pop' ' git reset --hard && git stash pop && test 3 = $(cat file) &&