Skip to content

Commit ede6b78

Browse files
committed
tests(mingw): if iconv is unavailable, use test-helper --iconv
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 070c90e commit ede6b78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/test-lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,6 +1716,12 @@ case $uname_s in
17161716
test_set_prereq GREP_STRIPS_CR
17171717
test_set_prereq WINDOWS
17181718
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1719+
if ! type iconv >/dev/null 2>&1
1720+
then
1721+
iconv () {
1722+
test-tool iconv "$@"
1723+
}
1724+
fi
17191725
;;
17201726
*CYGWIN*)
17211727
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)