git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t9500: skip gitweb tests if perl version is too old
@ 2007-06-22 15:49 Sven Verdoolaege
  2007-06-23  6:31 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Verdoolaege @ 2007-06-22 15:49 UTC (permalink / raw)
  To: git, Junio C Hamano

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>
---
 t/t9500-gitweb-standalone-no-errors.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh
index 44ae503..d948724 100755
--- a/t/t9500-gitweb-standalone-no-errors.sh
+++ b/t/t9500-gitweb-standalone-no-errors.sh
@@ -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
 
 # ----------------------------------------------------------------------
-- 
1.5.2.2.249.g45fd

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-23 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-22 15:49 [PATCH] t9500: skip gitweb tests if perl version is too old Sven Verdoolaege
2007-06-23  6:31 ` Junio C Hamano
2007-06-23  8:57   ` Sven Verdoolaege
2007-06-23 10:14     ` Junio C Hamano
2007-06-23 10:51       ` Sven Verdoolaege

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).