Skip to content

Commit e11337a

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

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
@@ -1407,6 +1407,12 @@ case $uname_s in
14071407
test_set_prereq SED_STRIPS_CR
14081408
test_set_prereq GREP_STRIPS_CR
14091409
GIT_TEST_CMP="test-tool cmp"
1410+
if ! type iconv >/dev/null 2>&1
1411+
then
1412+
iconv () {
1413+
test-tool iconv "$@"
1414+
}
1415+
fi
14101416
;;
14111417
*CYGWIN*)
14121418
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)