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 Oct 3, 2024
1 parent 60bbecf commit e36a6be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1730,6 +1730,12 @@ case $uname_s in
test_set_prereq GREP_STRIPS_CR
test_set_prereq WINDOWS
GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --"
if ! type iconv >/dev/null 2>&1
then
iconv () {
test-tool iconv "$@"
}
fi
;;
*CYGWIN*)
test_set_prereq POSIXPERM
Expand Down

0 comments on commit e36a6be

Please sign in to comment.