t/test-lib.sh: make ULIMIT_FILE_DESCRIPTORS available to tests
commitb30fdb4b4e6608ccafdfa4a13893940b85a8a7e8
authorTaylor Blau <me@ttaylorr.com>
Thu, 23 Apr 2020 21:41:06 +0000 (23 15:41 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Apr 2020 21:58:52 +0000 (23 14:58 -0700)
tree1c10149c98eb7fa738a14e44d21793681feb5aa6
parenta2d57e22803b1da0df95b0a88a34116209eeb6e6
t/test-lib.sh: make ULIMIT_FILE_DESCRIPTORS available to tests

In t1400 the prerequisite 'ULIMIT_FILE_DESCRIPTORS' is defined and used
to effectively guard the helper function 'run_with_limited_open_files'
from being used on systems that do not satisfy this prerequisite.

In the subsequent patch, we will introduce another test outside of t1400
that would benefit from using this prerequisite. So, move it to
'test-lib.sh' instead so that it can be used by multiple tests.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1400-update-ref.sh
t/test-lib.sh