From 63107d9788769e4a6769f0bdfcb49817ca7d882a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 2 Sep 2024 13:49:05 +0200 Subject: [PATCH] vma-prot tests: Strengthen test. Found by Coverity. * tests/test-vma-prot.c (main): Fix typo. --- ChangeLog | 6 ++++++ tests/test-vma-prot.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.5