From: Vladimír Čunát Date: Mon, 13 Nov 2017 09:41:25 +0000 (+0100) Subject: tests_cache: give it more space X-Git-Tag: v1.5.1~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff591a68c609fd2b4702cf452bb9d825ea17827;p=thirdparty%2Fknot-resolver.git 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. --- 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