Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2022 13:45:10 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 05d173587b1f - main - Fill the page size array in one posix shm test
Message-ID:  <202204201345.23KDjABQ057785@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

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

commit 05d173587b1f7b0e2c8b0143bd62a91430595d67
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-04-19 16:22:37 +0000
Commit:     Andrew Turner <andrew@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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204201345.23KDjABQ057785>