Merge branch 'js/maint-no-ln-across-libexec-and-bin'
[gitweb.git] / t / t9500-gitweb-standalone-no-errors.sh
index 9ec5030a91965847d4ae546b47e4f43badb1693b..f4210fbb04065cfe32f26053eb5f5f054d52e3cf 100755 (executable)
@@ -65,10 +65,14 @@ gitweb_run () {
 
 . ./test-lib.sh
 
+if ! test_have_prereq PERL; then
+       say 'skipping gitweb tests, perl not available'
+       test_done
+fi
+
 perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
     say 'skipping gitweb tests, perl version is too old'
     test_done
-    exit
 }
 
 gitweb_init