Skip to content

Commit 8a5c8f7

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

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
@@ -1483,6 +1483,12 @@ case $uname_s in
14831483
test_set_prereq SED_STRIPS_CR
14841484
test_set_prereq GREP_STRIPS_CR
14851485
GIT_TEST_CMP="test-tool cmp"
1486+
if ! type iconv >/dev/null 2>&1
1487+
then
1488+
iconv () {
1489+
test-tool iconv "$@"
1490+
}
1491+
fi
14861492
;;
14871493
*CYGWIN*)
14881494
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)