From: Stefan Beller Date: Wed, 21 Jan 2015 18:59:06 GMT Subject: [BUG?] setting ulimit in test suite broken for me Message-ID: <1421866746-29444-1-git-send-email-sbeller@google.com> Hi, so I wanted to create a new test for large transactions, which should look like: run_with_limited_open_files () { (ulimit -n 64 && "$@") } test_lazy_prereq ULIMIT 'run_with_limited_open_files true' test_expect_success ULIMIT 'large transaction creating branches does not burst open file limit' ' ( echo $(ulimit -n) for i in $(seq 65) do echo "create refs/heads/$i HEAD" done >large_input && git update-ref --stdin --- t/t7004-tag.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh index 35c805a..4f09cb4 100755 --- a/t/t7004-tag.sh +++ b/t/t7004-tag.sh @@ -1460,20 +1460,21 @@ test_expect_success 'invalid sort parameter in configuratoin' ' ' run_with_limited_stack () { (ulimit -s 128 && "$@") } test_lazy_prereq ULIMIT 'run_with_limited_stack true' # we require ulimit, this excludes Windows test_expect_success ULIMIT '--contains works in a deep repo' ' + echo $(ulimit -s) > ../ulimit_recorded >expect && i=1 && while test $i -lt 8000 do echo "commit refs/heads/master committer A U Thor $((1000000000 + $i * 100)) +0200 data <