From: Bruno Haible Date: Mon, 2 Sep 2024 11:49:05 +0000 (+0200) Subject: vma-prot tests: Strengthen test. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=63107d9788769e4a6769f0bdfcb49817ca7d882a;p=gnulib.git vma-prot tests: Strengthen test. Found by Coverity. * tests/test-vma-prot.c (main): Fix typo. --- diff --git a/ChangeLog b/ChangeLog index 2b8ee26738..f45cb8ed91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-09-02 Bruno Haible + + vma-prot tests: Strengthen test. + Found by Coverity. + * tests/test-vma-prot.c (main): Fix typo. + 2024-09-02 Simon Josefsson syntax-check: Catch obsolete Franklin Street usages. diff --git a/tests/test-vma-prot.c b/tests/test-vma-prot.c index 24b5b1873a..dc100d3af3 100644 --- a/tests/test-vma-prot.c +++ b/tests/test-vma-prot.c @@ -65,7 +65,7 @@ main (void) { prot = get_vma_prot (mem, 1024*1024); ASSERT (prot != -1); - ASSERT (prot == VMA_PROT_READ | VMA_PROT_WRITE); + ASSERT (prot == (VMA_PROT_READ | VMA_PROT_WRITE)); size_t pagesize = sysconf (_SC_PAGESIZE); if (pagesize <= 512*1024