Skip to content

Commit 87fcf64

Browse files
dschovdye
authored andcommitted
tests(mingw): if iconv is unavailable, use test-helper --iconv
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 19fdd79 commit 87fcf64

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
@@ -1495,6 +1495,12 @@ case $uname_s in
14951495
test_set_prereq GREP_STRIPS_CR
14961496
test_set_prereq WINDOWS
14971497
GIT_TEST_CMP="test-tool cmp"
1498+
if ! type iconv >/dev/null 2>&1
1499+
then
1500+
iconv () {
1501+
test-tool iconv "$@"
1502+
}
1503+
fi
14981504
;;
14991505
*CYGWIN*)
15001506
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)