From: Bruno Haible Date: Wed, 29 Jul 2026 20:24:14 +0000 (+0200) Subject: tests: Avoid some more runtime errors with Fil-C. X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fgnulib.git tests: Avoid some more runtime errors with Fil-C. * tests/test-vma-prot.c (main): Skip assertions that fail on Fil-C. --- diff --git a/ChangeLog b/ChangeLog index 07587269d4..b4df229a0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-07-29 Bruno Haible + + tests: Avoid some more runtime errors with Fil-C. + * tests/test-vma-prot.c (main): Skip assertions that fail on Fil-C. + 2026-07-28 Bruno Haible tests: Avoid some more runtime errors with Fil-C. diff --git a/tests/test-vma-prot.c b/tests/test-vma-prot.c index 11b7694ad6..3c3ac8ed01 100644 --- a/tests/test-vma-prot.c +++ b/tests/test-vma-prot.c @@ -73,7 +73,9 @@ main (void) { prot = get_vma_prot (mem, 1024*1024); ASSERT (prot != -1); +# if !defined __FILC__ /* */ ASSERT (prot == 0); +# endif } } } @@ -96,7 +98,9 @@ main (void) #else /* On these platforms, a function pointer is a pointer to or into some machine instruction. */ +# if !defined __FILC__ ASSERT ((VMA_PROT_EXECUTE & ~prot) == 0); +# endif #endif #if !defined __OpenBSD__ /* Except on OpenBSD/arm64, the machine instructions are also readable. */