Skip to content

Commit 3077c7b

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

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

0 commit comments

Comments
 (0)