Skip to content

Commit 7774624

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

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
@@ -1701,6 +1701,12 @@ case $uname_s in
17011701
test_set_prereq GREP_STRIPS_CR
17021702
test_set_prereq WINDOWS
17031703
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1704+
if ! type iconv >/dev/null 2>&1
1705+
then
1706+
iconv () {
1707+
test-tool iconv "$@"
1708+
}
1709+
fi
17041710
;;
17051711
*CYGWIN*)
17061712
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)