summaryrefslogtreecommitdiff
path: root/tests/slow
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-20 16:19:32 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-20 16:19:34 +0200
commit5dfd908cfae5f0c36e02c34d8697e2ed44b86bb6 (patch)
tree6d8f7454116ebf283b2bccd3b9e626d375108d45 /tests/slow
parent7cf782bf02d2749490f98355f53bf82762f90798 (diff)
downloadgnutls-5dfd908cfae5f0c36e02c34d8697e2ed44b86bb6.tar.gz
tests: hash-large: use private mmap()
This reduces the memory usage of the test significantly on Linux.
Diffstat (limited to 'tests/slow')
-rw-r--r--tests/slow/hash-large.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/slow/hash-large.c b/tests/slow/hash-large.c
index 96ebd53765..3a563b781a 100644
--- a/tests/slow/hash-large.c
+++ b/tests/slow/hash-large.c
@@ -41,7 +41,7 @@ static size_t _mmap_size;
static void *get_mem(size_t size)
{
_mmap_size = size;
- return mmap(NULL, size, PROT_READ, MAP_SHARED|MAP_ANONYMOUS, -1, 0);
+ return mmap(NULL, size, PROT_READ, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
}
static void put_mem(void *mem)