]> 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>
Thu, 18 Jan 2024 08:26:32 +0000 (09:26 +0100)
commit8bd237e2b0e63647f51a323147277cd169a6a3cb
tree624529c632e8a2e2379175e7d33fea5b218d9a00
parentc0249f62188a2dbe8881ec19fbc93c1b1a737bf4
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