aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-09 14:06:25 -0800
committerJunio C Hamano <gitster@pobox.com>2020-11-09 14:06:25 -0800
commit65681e75c1e57cb3c575969b4703323e6bdd447f (patch)
tree9d60f123a5a14cca9d46309cc2de1dac552f63db /t/test-lib.sh
parentbf69da56c9e8adac1eee91b7a8b000363156c583 (diff)
parent5338ed2b26ebf91de246c59e525ad254dcbc7a84 (diff)
downloadgit-65681e75c1e57cb3c575969b4703323e6bdd447f.tar.gz
Merge branch 'jk/perl-warning'
Dev support. * jk/perl-warning: perl: check for perl warnings while running tests
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 6bc0a30d38..fa347ed3e1 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -499,6 +499,12 @@ then
export GIT_INDEX_VERSION
fi
+if test -n "$GIT_TEST_PERL_FATAL_WARNINGS"
+then
+ GIT_PERL_FATAL_WARNINGS=1
+ export GIT_PERL_FATAL_WARNINGS
+fi
+
# Add libc MALLOC and MALLOC_PERTURB test
# only if we are not executing the test with valgrind
if test -n "$valgrind" ||