From: Bruno Haible Date: Mon, 2 Nov 2020 00:37:02 +0000 (+0100) Subject: ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC. X-Git-Tag: v1.0~3539 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0d274da863e99bc504561fc8cb51a46b154fec22;p=gnulib.git ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC. * tests/test-ssfmalloc.c: Include . (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC. --- diff --git a/ChangeLog b/ChangeLog index db0eb173ae..2068ce6d24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-11-01 Bruno Haible + + ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC. + * tests/test-ssfmalloc.c: Include . + (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC. + 2020-11-01 Bruno Haible verify tests: Fix compilation error with MSVC (regression 2020-10-30). diff --git a/tests/test-ssfmalloc.c b/tests/test-ssfmalloc.c index 9699e6b5ed..86fa42bf84 100644 --- a/tests/test-ssfmalloc.c +++ b/tests/test-ssfmalloc.c @@ -124,9 +124,9 @@ free_pages (uintptr_t pages, size_t size) /* ======================= Instantiate the front end ======================= */ #define PAGESIZE pagesize -/* On Cygwin, PAGESIZE is 65536. On all other platforms, it is either 4096 - or 8192. */ -#ifdef __CYGWIN__ +/* On Cygwin and Linux/PowerPC, PAGESIZE is 65536. On all other platforms, it + is either 4096 or 8192. */ +#if defined __CYGWIN__ || (defined __linux__ && defined __powerpc__) # define PAGESIZE_MAX 65536 #else # define PAGESIZE_MAX 8192 @@ -141,6 +141,8 @@ free_pages (uintptr_t pages, size_t size) /* ================================= Tests ================================= */ +#include + #include "macros.h" /* Fills a block of a given size with some contents. */