mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user