mirror of
https://github.com/git/git.git
synced 2026-03-18 04:30:09 +01:00
Skip t1300.70 and 71 on msysGit.
These two tests fail on msysGit because /dev/null is an alias for nul on Windows and when reading the value back from git config the alias does not match the real filename. Also the HOME environment variable has a unix-style path but git returns a native equivalent path for '~'. As these are platform-dependent equivalent results it seems simplest to skip the test entirely. Signed-off-by: Pat Thoyts <patthoyts <at> users.sourceforge.net>
This commit is contained in:
committed by
Johannes Schindelin
parent
a0a50f6f30
commit
3c4c6ec270
@@ -701,13 +701,13 @@ cat >expect <<\EOF
|
||||
trailingtilde = foo~
|
||||
EOF
|
||||
|
||||
test_expect_success 'set --path' '
|
||||
test_expect_success NONMINGW 'set --path' '
|
||||
git config --path path.home "~/" &&
|
||||
git config --path path.normal "/dev/null" &&
|
||||
git config --path path.trailingtilde "foo~" &&
|
||||
test_cmp expect .git/config'
|
||||
|
||||
if test "${HOME+set}"
|
||||
if test_have_prereq NONMINGW && test "${HOME+set}"
|
||||
then
|
||||
test_set_prereq HOMEVAR
|
||||
fi
|
||||
@@ -730,7 +730,7 @@ cat >expect <<\EOF
|
||||
foo~
|
||||
EOF
|
||||
|
||||
test_expect_success 'get --path copes with unset $HOME' '
|
||||
test_expect_success NONMINGW 'get --path copes with unset $HOME' '
|
||||
(
|
||||
unset HOME;
|
||||
test_must_fail git config --get --path path.home \
|
||||
|
||||
@@ -877,6 +877,7 @@ case $(uname -s) in
|
||||
test_set_prereq POSIXPERM
|
||||
test_set_prereq BSLASHPSPEC
|
||||
test_set_prereq EXECKEEPSPID
|
||||
test_set_prereq NONMINGW
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user