Skip to content

Commit 128897a

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

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
@@ -1540,6 +1540,12 @@ case $uname_s in
15401540
test_set_prereq GREP_STRIPS_CR
15411541
test_set_prereq WINDOWS
15421542
GIT_TEST_CMP="test-tool cmp"
1543+
if ! type iconv >/dev/null 2>&1
1544+
then
1545+
iconv () {
1546+
test-tool iconv "$@"
1547+
}
1548+
fi
15431549
;;
15441550
*CYGWIN*)
15451551
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)