Skip to content

Commit 70b9491

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

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
@@ -1717,6 +1717,12 @@ case $uname_s in
17171717
test_set_prereq GREP_STRIPS_CR
17181718
test_set_prereq WINDOWS
17191719
GIT_TEST_CMP="test-tool cmp"
1720+
if ! type iconv >/dev/null 2>&1
1721+
then
1722+
iconv () {
1723+
test-tool iconv "$@"
1724+
}
1725+
fi
17201726
;;
17211727
*CYGWIN*)
17221728
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)