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>
Sven Verdoolaege committed
Jun 22, 2007 at 17:49 UTC
fc746df6476078fa04f821aea00f84bbe13dbf9f
1 file changed
+6
t/t9500-gitweb-standalone-no-errors.sh
+6
@@ -60,6 +60,12 @@ gitweb_run () {
60
61
. ./test-lib.sh
62
63
+perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
64
+ test_expect_success 'skipping gitweb tests, perl version is too old' :
65
+ test_done
66
+ exit
67
+}
68
+
69
gitweb_init
70
71
# ----------------------------------------------------------------------