From nobody Wed Apr 20 13:45:10 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 672BE11D60B8; Wed, 20 Apr 2022 13:45:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kk23p2NvDz3K0p; Wed, 20 Apr 2022 13:45:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650462310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xxEn7JHTACytTqqQXNNyFVP8FVanJEgukIdEWW5DBEQ=; b=xfH03yXH5p8QAh7rwKaOR+DL6uJcFtghAoSCZn7EJKsR2kG638w/QOuPtIaLAtnJyJE0bN TYzPamdFV9OyvlzhVxMogrece0Cl6PuqxlryQora0d9BSaJH1HWoSCabKMXKohJG/iIE7/ ueI0B0aE8i+OBDLldQwqh7YRG7+ABFlNhZXBv8CZZeWY/nGaJSZZ7wl92cTU29S/7uW64/ 5EpvV+y54gkGEcYHrT9mpAYDIfJzx6LlvIg1t2wvaPeMI0tpvImdlQfSVzd5mcCK9pGhQ9 qjRQkBu452dE7oqSHS/EYqzs6gUt8v0oT+HBc+KVp9b7UCLiqw+4J3AvGPgarQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 320CC15293; Wed, 20 Apr 2022 13:45:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23KDjApj057786; Wed, 20 Apr 2022 13:45:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23KDjABQ057785; Wed, 20 Apr 2022 13:45:10 GMT (envelope-from git) Date: Wed, 20 Apr 2022 13:45:10 GMT Message-Id: <202204201345.23KDjABQ057785@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 05d173587b1f - main - Fill the page size array in one posix shm test List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 05d173587b1f7b0e2c8b0143bd62a91430595d67 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650462310; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xxEn7JHTACytTqqQXNNyFVP8FVanJEgukIdEWW5DBEQ=; b=gOpEt7vDCebKQnOJRbzSQHh0KByvr6t/62hGA/Bxp5o4EMINawSHarJxjnmnQP7B46fkqR qOhYqaKMhc6qhIvLuYPm9DaKsuEmPxBRc7ZTfZOKoeZBjlVwWsUJ9B6f5gX2V6bS1CD+WT 9OreiT+130rGfi/IFtJpZDe6DHoHsUlnpKRdxGEgpDBhR2PbSzoFfPZksl29m9UdshKH+1 VEHAH6X9FCPJLip/fRFZjxJGNXyvsuOrnS5AP0VuYVM8lNBodeOudUZG5lJBZvHwVbD/Y7 i6BEa9wxCBpxSe6QgkYpVJov6ZaXpOPQX/VoGiYzMKrxjgU9M3JxLCEIW5DpAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650462310; a=rsa-sha256; cv=none; b=ciK/taVh/elbYzr5Z7oWPXx8tw9GzPZ2qjSaD7RDwsuEgM6Mp2pknWSimfmGybIT5JKgdY HZ5BuW2SirgN+4rg4hEa+G7B4RHLocEUDE/Xexmno5cfWmYMEjDiyfdU2WWw7cLqxxjsqN zWhJNcrvG2ijllAQqGgVvgM0cN160p050vRwyxPK1WB8llF5gGVSRfDJyxs6lFfB7YgKHy NJS8QQP0x9ChasB1B8Cx+99M9602d5ToyIgpUPq2titKfmp+IKstptmzdFZad883nWQLft ymbuuqLa8uPEXCi4QmgmfHM8TUiFqQQ+/diAX/np5xmYubLyKTVZIX1/PuPyfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=05d173587b1f7b0e2c8b0143bd62a91430595d67 commit 05d173587b1f7b0e2c8b0143bd62a91430595d67 Author: Andrew Turner AuthorDate: 2022-04-19 16:22:37 +0000 Commit: Andrew Turner 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);