diff options
author | Jeff King <peff@peff.net> | 2015-03-13 07:53:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-03-13 09:25:45 +0300 |
commit | 9a308de37c485068d6470d4c51e231a36e651e98 (patch) | |
tree | 729b1b09ab2b596b58499fc1133769360bc07a0b /t/test-lib.sh | |
parent | 89c57ab3f0168b192d5ccc159972fdb26e0ba80b (diff) |
t5541: move run_with_cmdline_limit to test-lib.sh
We use this to test http pushing with a restricted
commandline. Other scripts (like t5551, which does http
fetching) will want to use it, too.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 7dd4b4d1c2..9914d3e1cf 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1062,3 +1062,9 @@ test_lazy_prereq UNZIP ' "$GIT_UNZIP" -v test $? -ne 127 ' + +run_with_limited_cmdline () { + (ulimit -s 128 && "$@") +} + +test_lazy_prereq CMDLINE_LIMIT 'run_with_limited_cmdline true' |