mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
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 <prohaska@zib.de>
This commit is contained in:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user