diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-25 09:24:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-25 09:24:05 +0300 |
commit | b0df15a15d6479508676757e810419141516754f (patch) | |
tree | f8c2a81b3f91c41ad2e73a3d2674901e401dd5fc /t/test-lib.sh | |
parent | 59c0ea183ad1c5c2b3790caa5046e4ecfa839247 (diff) | |
parent | 31625b34c0e54ae184f28aa5eb5095d21204557e (diff) |
Merge branch 'mg/name-rev-tests-with-short-stack'
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
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index a738540ef2..83f5d3dd21 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1172,6 +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" |