Skip to content

Commit dc56891

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

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
@@ -1627,6 +1627,12 @@ case $uname_s in
16271627
test_set_prereq GREP_STRIPS_CR
16281628
test_set_prereq WINDOWS
16291629
GIT_TEST_CMP="test-tool cmp"
1630+
if ! type iconv >/dev/null 2>&1
1631+
then
1632+
iconv () {
1633+
test-tool iconv "$@"
1634+
}
1635+
fi
16301636
;;
16311637
*CYGWIN*)
16321638
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)