diff options
author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2017-09-14 18:24:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-15 11:52:00 +0900 |
commit | 21dac1deee58df80f7b2cd17d661864c8db5d28a (patch) | |
tree | 568007825f19c4199d09fe7d47f5699f93e2677d /check-racy.c | |
parent | t6120: test describe and name-rev with deep repos (diff) | |
download | tgif-21dac1deee58df80f7b2cd17d661864c8db5d28a.tar.xz |
test-lib: don't use ulimit in test prerequisites on cygwin
On cygwin (and MinGW), the 'ulimit' built-in bash command does not have
the desired effect of limiting the resources of new processes, at least
for the stack and file descriptors. However, it always returns success
and leads to several test prerequisites being erroneously set to true.
Add a check for cygwin and MinGW to the prerequisite expressions, using
a 'test_have_prereq !MINGW,!CYGWIN' clause, to guard against using ulimit.
This affects the prerequisite expressions for the ULIMIT_STACK_SIZE,
CMDLINE_LIMIT and ULIMIT_FILE_DESCRIPTORS prerequisites.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check-racy.c')
0 files changed, 0 insertions, 0 deletions