]> Savannah Git Hosting - gnulib.git/commit
jit/cache tests: Avoid test failure on CentOS, *BSD, macOS.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 16:15:35 +0000 (17:15 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 16:15:35 +0000 (17:15 +0100)
commit57b07295e1c3c23ab4af11021f1aecd1820c83f9
tree3fd37cf6034092fd6ae6d8c95bf88afbfb6fed0d
parent267184ec9a060c088e1feab717120e43911485e5
jit/cache tests: Avoid test failure on CentOS, *BSD, macOS.

* tests/jit/test-cache.c: Include <fcntl.h>, <stdio.h>, <stdlib.h>.
Don't include pagealign_alloc.h. Include clean-temp-simple.h. Don't test
HAVE_MPROTECT.
(struct func): Fix #if conditions.
(main): Don't invoke pagealign_xalloc and mprotect. Instead, invoke mmap,
using a temporary file if needed.
* modules/jit/cache-tests (Files): Add m4/mmap-anon.m4.
(Depends-on): Add clean-temp-simple. Remove pagealign_alloc.
(configure.ac): Invoke gl_FUNC_MMAP_ANON. Don't test for mprotect.
ChangeLog
modules/jit/cache-tests
tests/jit/test-cache.c