diff options
author | Steffen Prohaska <prohaska@zib.de> | 2014-08-26 17:23:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-28 10:25:14 -0700 |
commit | 02710228dd79d9f9c6fa180233491639b603c06d (patch) | |
tree | cdbb0fb370d572291bbbe27718978aa754aba008 /abspath.c | |
parent | memory_limit: use git_env_ulong() to parse GIT_ALLOC_LIMIT (diff) | |
download | tgif-02710228dd79d9f9c6fa180233491639b603c06d.tar.xz |
mmap_limit: introduce GIT_MMAP_LIMIT to allow testing expected mmap size
In order to test expectations about mmap in a way similar to testing
expectations about malloc with GIT_ALLOC_LIMIT introduced by
d41489a6 (Add more large blob test cases, 2012-03-07), introduce a
new environment variable GIT_MMAP_LIMIT to limit the largest allowed
mmap length.
xmmap() is modified to check the size of the requested region and
fail it if it is beyond the limit. Together with GIT_ALLOC_LIMIT
tests can now confirm expectations about memory consumption.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'abspath.c')
0 files changed, 0 insertions, 0 deletions