From 3ff591a68c609fd2b4702cf452bb9d825ea17827 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 13 Nov 2017 10:41:25 +0100 Subject: [PATCH] tests_cache: give it more space https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878976 In general, platforms with page size other than 4k might better compile with -DCPU_PAGE_SIZE=nnnnn but real impact should only be this test and better alignment in the mempool allocator. --- NEWS | 1 + tests/test_cache.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8a4c09668..5dc3bdf45 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ Knot Resolver 1.5.1 (2017-1x-yy) Bugfixes -------- - fix SIGPIPE crashes +- tests: work around out-of-space for platforms with larger memory pages Knot Resolver 1.5.0 (2017-11-02) diff --git a/tests/test_cache.c b/tests/test_cache.c index bd2060427..1ec018733 100644 --- a/tests/test_cache.c +++ b/tests/test_cache.c @@ -35,7 +35,7 @@ struct kr_cache_entry global_fake_ce; uint8_t namedb_data[NAMEDB_DATA_SIZE]; knot_db_val_t global_namedb_data = {namedb_data, NAMEDB_DATA_SIZE}; -#define CACHE_SIZE 10 * 4096 +#define CACHE_SIZE (64 * CPU_PAGE_SIZE) #define CACHE_TTL 10 #define CACHE_TIME 0 -- 2.47.3