Skip to content

Commit

Permalink
tests(mingw): if iconv is unavailable, use test-helper --iconv
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Sep 16, 2022
1 parent 90f9333 commit ac5e171
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/test-lib.sh
Expand Up @@ -1703,6 +1703,12 @@ case $uname_s in
test_set_prereq GREP_STRIPS_CR
test_set_prereq WINDOWS
GIT_TEST_CMP="test-tool cmp"
if ! type iconv >/dev/null 2>&1
then
iconv () {
test-tool iconv "$@"
}
fi
;;
*CYGWIN*)
test_set_prereq POSIXPERM
Expand Down

0 comments on commit ac5e171

Please sign in to comment.