Skip to content

Commit 428077b

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

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
@@ -1674,6 +1674,12 @@ Darwin)
16741674
test_set_prereq GREP_STRIPS_CR
16751675
test_set_prereq WINDOWS
16761676
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
1677+
if ! type iconv >/dev/null 2>&1
1678+
then
1679+
iconv () {
1680+
test-tool iconv "$@"
1681+
}
1682+
fi
16771683
;;
16781684
*CYGWIN*)
16791685
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)