t5511: Mark test with "::" as broken on MinGW

We must not use arguments with "::" on MinGW.  MSYS' path conversion
heuristic mangles such arguments.  The heuristic considers them path
lists and converts ":" to ";".

This commit marks a test that uses "::" as broken.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
This commit is contained in:
Steffen Prohaska
2008-04-13 11:21:54 +02:00
parent f94ce3a59d
commit ed697a2400

View File

@@ -4,6 +4,8 @@ test_description='refspec parsing'
. ./test-lib.sh
test_expect=test_expect_success
test_refspec () {
kind=$1 refspec=$2 expect=$3
@@ -19,7 +21,7 @@ test_refspec () {
title="$kind $refspec (invalid)"
test='test_must_fail git ls-remote frotz'
fi
test_expect_success "$title" "$test"
$test_expect "$title" "$test"
}
test_refspec push '' invalid
@@ -46,7 +48,14 @@ test_refspec fetch 'refs/heads/*:refs/remotes/frotz/*'
test_refspec fetch 'refs/heads/*:refs/remotes/frotz' invalid
test_refspec fetch 'refs/heads:refs/remotes/frotz/*' invalid
test_refspec fetch 'refs/heads/master:refs/remotes/frotz/xyzzy'
case $(uname -s) in
*MINGW*) test_expect=test_expect_failure;;
*) test_expect=test_expect_success;;
esac
test_refspec fetch 'refs/heads/master::refs/remotes/frotz/xyzzy' invalid
test_expect=test_expect_success
test_refspec fetch 'refs/heads/maste :refs/remotes/frotz/xyzzy' invalid
test_refspec push 'master~1:refs/remotes/frotz/backup'