Skip to content

Commit 626fee0

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

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
@@ -1659,6 +1659,12 @@ case $uname_s in
16591659
test_set_prereq GREP_STRIPS_CR
16601660
test_set_prereq WINDOWS
16611661
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1662+
if ! type iconv >/dev/null 2>&1
1663+
then
1664+
iconv () {
1665+
test-tool iconv "$@"
1666+
}
1667+
fi
16621668
;;
16631669
*CYGWIN*)
16641670
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)