Skip to content

Commit

Permalink
t9500: skip gitweb tests if perl version is too old
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sven Verdoolaege authored and Junio C Hamano committed Jun 24, 2007
1 parent ee4fd1a commit fc746df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t9500-gitweb-standalone-no-errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ----------------------------------------------------------------------
Expand Down

0 comments on commit fc746df

Please sign in to comment.