Skip to content

Commit 439a48c

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

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
@@ -1573,6 +1573,12 @@ case $uname_s in
15731573
test_set_prereq GREP_STRIPS_CR
15741574
test_set_prereq WINDOWS
15751575
GIT_TEST_CMP="test-tool cmp"
1576+
if ! type iconv >/dev/null 2>&1
1577+
then
1578+
iconv () {
1579+
test-tool iconv "$@"
1580+
}
1581+
fi
15761582
;;
15771583
*CYGWIN*)
15781584
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)