From: Junio C Hamano Date: Thu, 14 Sep 2017 08:40:38 +0000 (+0900) Subject: Merge branch 'mg/name-rev-tests-with-short-stack' into next X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1e4a0fe206c91b1e254ab918586b0825ec7f5778?hp=-c Merge branch 'mg/name-rev-tests-with-short-stack' into next A handful of tests to demonstrates a recursive implementation of "name-rev" hurts. * mg/name-rev-tests-with-short-stack: t6120: test describe and name-rev with deep repos t6120: clean up state after breaking repo t6120: test name-rev --all and --stdin t7004: move limited stack prereq to test-lib --- 1e4a0fe206c91b1e254ab918586b0825ec7f5778 diff --combined t/test-lib.sh index a738540ef2,f22c1b260a..83f5d3dd21 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@@ -44,11 -44,6 +44,11 @@@ GIT_BUILD_DIR="$TEST_DIRECTORY"/. : ${ASAN_OPTIONS=detect_leaks=0:abort_on_error=1} export ASAN_OPTIONS +# If LSAN is in effect we _do_ want leak checking, but we still +# want to abort so that we notice the problems. +: ${LSAN_OPTIONS=abort_on_error=1} +export LSAN_OPTIONS + ################################################################ # It appears that people try to run tests without building... "$GIT_BUILD_DIR/git" >/dev/null @@@ -279,7 -274,7 +279,7 @@@ the test -z "$verbose" && verbose_only="$valgrind_only" elif test -n "$valgrind" then - verbose=t + test -z "$verbose_log" && verbose=t fi if test -n "$color" @@@ -1172,6 -1167,12 +1172,12 @@@ run_with_limited_cmdline () test_lazy_prereq CMDLINE_LIMIT 'run_with_limited_cmdline true' + run_with_limited_stack () { + (ulimit -s 128 && "$@") + } + + test_lazy_prereq ULIMIT_STACK_SIZE 'run_with_limited_stack true' + build_option () { git version --build-options | sed -ne "s/^$1: //p"