Skip to content

Commit db8e612

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

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
@@ -1054,6 +1054,12 @@ case $uname_s in
10541054
test_set_prereq SED_STRIPS_CR
10551055
test_set_prereq GREP_STRIPS_CR
10561056
GIT_TEST_CMP="test-helper --cmp"
1057+
if ! type iconv >/dev/null 2>&1
1058+
then
1059+
iconv () {
1060+
test-helper --iconv "$@"
1061+
}
1062+
fi
10571063
;;
10581064
*CYGWIN*)
10591065
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)