t9500: skip gitweb tests if perl version is too old

gitweb calls Encode::decode_utf8 with two arguments,
but old versions of perl only allow this function to be called
with one argument.  Even older versions of perl do not even
have an Encode module.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Sven Verdoolaege 2007-06-22 17:49:08 +02:00 коммит произвёл Junio C Hamano
Родитель ee4fd1adfd
Коммит fc746df647
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -60,6 +60,12 @@ gitweb_run () {
. ./test-lib.sh
perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
test_expect_success 'skipping gitweb tests, perl version is too old' :
test_done
exit
}
gitweb_init
# ----------------------------------------------------------------------