tests(mingw): if iconv is unavailable, use test-helper --iconv

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-07-20 22:25:21 +02:00
parent 05026aedee
commit fa1260ce9f

View File

@@ -1021,6 +1021,12 @@ case $uname_s in
test_set_prereq SED_STRIPS_CR
test_set_prereq GREP_STRIPS_CR
GIT_TEST_CMP="test-helper --cmp"
if ! type iconv >/dev/null 2>&1
then
iconv () {
test-helper --iconv "$@"
}
fi
;;
*CYGWIN*)
test_set_prereq POSIXPERM