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:
Pat Thoyts
2010-02-15 23:14:28 +00:00
committed by Johannes Schindelin
parent a0a50f6f30
commit 3c4c6ec270
2 changed files with 4 additions and 3 deletions

View File

@@ -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 \

View File

@@ -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