Skip to content

Commit 37928a6

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

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
@@ -1711,6 +1711,12 @@ case $uname_s in
17111711
test_set_prereq GREP_STRIPS_CR
17121712
test_set_prereq WINDOWS
17131713
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1714+
if ! type iconv >/dev/null 2>&1
1715+
then
1716+
iconv () {
1717+
test-tool iconv "$@"
1718+
}
1719+
fi
17141720
;;
17151721
*CYGWIN*)
17161722
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)