Skip to content

Commit 1909f89

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

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
@@ -1221,6 +1221,12 @@ case $uname_s in
12211221
test_set_prereq SED_STRIPS_CR
12221222
test_set_prereq GREP_STRIPS_CR
12231223
GIT_TEST_CMP="test-tool cmp"
1224+
if ! type iconv >/dev/null 2>&1
1225+
then
1226+
iconv () {
1227+
test-tool iconv "$@"
1228+
}
1229+
fi
12241230
;;
12251231
*CYGWIN*)
12261232
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)