Skip to content

Commit f5b41cc

Browse files
dschoderrickstolee
authored andcommitted
tests(mingw): if iconv is unavailable, use test-helper --iconv
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9eaac30 commit f5b41cc

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
@@ -1477,6 +1477,12 @@ case $uname_s in
14771477
test_set_prereq SED_STRIPS_CR
14781478
test_set_prereq GREP_STRIPS_CR
14791479
GIT_TEST_CMP="test-tool cmp"
1480+
if ! type iconv >/dev/null 2>&1
1481+
then
1482+
iconv () {
1483+
test-tool iconv "$@"
1484+
}
1485+
fi
14801486
;;
14811487
*CYGWIN*)
14821488
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)