aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/test-lib.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index ef0ab7ec2d..b3f82e32cf 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1719,7 +1719,6 @@ esac
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1
test -z "$NO_CURL" && test_set_prereq LIBCURL
test -z "$NO_GITWEB" && test_set_prereq GITWEB
-test -z "$NO_ICONV" && test_set_prereq ICONV
test -z "$NO_PERL" && test_set_prereq PERL
test -z "$NO_PTHREADS" && test_set_prereq PTHREADS
test -z "$NO_PYTHON" && test_set_prereq PYTHON
@@ -1730,6 +1729,17 @@ test -n "$SANITIZE_LEAK" && test_set_prereq SANITIZE_LEAK
test -n "$GIT_VALGRIND_ENABLED" && test_set_prereq VALGRIND
test -n "$PERL_PATH" && test_set_prereq PERL_TEST_HELPERS
+test_lazy_prereq ICONV '
+ # We require Git to be built with iconv support, and we require the
+ # iconv binary to exist.
+ #
+ # NEEDSWORK: We might eventually want to split this up into two
+ # prerequisites: one for NO_ICONV, and one for the iconv(1) binary, as
+ # some tests only depend on either of these.
+ test -z "$NO_ICONV" &&
+ iconv -f utf8 -t utf8 </dev/null
+'
+
if test -z "$GIT_TEST_CHECK_CACHE_TREE"
then
GIT_TEST_CHECK_CACHE_TREE=true