The branch main has been updated by andrew:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=05d173587b1f7b0e2c8b0143bd62a91430595d67

commit 05d173587b1f7b0e2c8b0143bd62a91430595d67
Author:     Andrew Turner <and...@freebsd.org>
AuthorDate: 2022-04-19 16:22:37 +0000
Commit:     Andrew Turner <and...@freebsd.org>
CommitDate: 2022-04-20 12:38:05 +0000

    Fill the page size array in one posix shm test
    
    The largepage_config posix shared memory test was failing on arm64 as
    the page size array is never filled out. Fix this by calling
    getpagesizes(3), via pagesizes.
    
    Reviewed by:    markj, kib
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D34960
---
 tests/sys/posixshm/posixshm_test.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/sys/posixshm/posixshm_test.c 
b/tests/sys/posixshm/posixshm_test.c
index e3a4e55b3704..34c936d0b3b3 100644
--- a/tests/sys/posixshm/posixshm_test.c
+++ b/tests/sys/posixshm/posixshm_test.c
@@ -1253,6 +1253,8 @@ ATF_TC_BODY(largepage_config, tc)
        size_t ps[MAXPAGESIZES + 1]; /* silence warnings if MAXPAGESIZES == 1 */
        int error, fd;
 
+       (void)pagesizes(ps);
+
        fd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0);
        ATF_REQUIRE_MSG(fd >= 0, "shm_open failed; error=%d", errno);
 

Reply via email to