Skip to content

Commit dcab3e9

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/test-lib.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,12 @@ case $uname_s in
16451645
test_set_prereq GREP_STRIPS_CR
16461646
test_set_prereq WINDOWS
16471647
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1648+
if ! type iconv >/dev/null 2>&1
1649+
then
1650+
iconv () {
1651+
test-tool iconv "$@"
1652+
}
1653+
fi
16481654
;;
16491655
*CYGWIN*)
16501656
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)