From nobody Tue Aug 23 23:59:11 2022 X-Original-To: dev-commits-src-all@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 4MC5mb2mF4z4ZdFj; Tue, 23 Aug 2022 23:59:11 +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 4MC5mb2G9hz3sYj; Tue, 23 Aug 2022 23:59:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661299151; 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=k83OoPKOPYpAPbl88JujGMi1jQaIm1fZQ0EFQUFQi4Y=; b=fdBT0vBCZArfe81t76H4k/3+LTFk5slMQpGmaimuebg1wHpluyvje4sa1XV1Bjb5QRCr5L KVZc6hNF5vP/tjRHlUEn/S99uFyFQXQOdy+yCm/7bwt/Zzb7eELHr7qfHh/ObvuPIjOIko jl2ZbYkm8+ISEVaYB+AaniYMy6wODlqFxz1UHqaC/R4ijAV/isOqL2zztaxLWQUmsW1GQC tlGtREKe6QIbbQEO5vRghYf4Xhl5PZVGh7I7gmtDDWLII4KVsk8MQ3UybHv/tQyuvDo0rx gwLPLzvAanqCffu2daBDaCZYiygKXWnKVQctc0Xa/mZtPXDihQJQgHjOFdn1Ag== 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 4MC5mb1KrbzpDd; Tue, 23 Aug 2022 23:59:11 +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 27NNxB02016543; Tue, 23 Aug 2022 23:59:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27NNxBvE016542; Tue, 23 Aug 2022 23:59:11 GMT (envelope-from git) Date: Tue, 23 Aug 2022 23:59:11 GMT Message-Id: <202208232359.27NNxBvE016542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 4b8feb5d61ac - main - tests: Handle platforms with MAXPAGESIZES < 2 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b8feb5d61ace6d94cafb03288a53694e84c2e53 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661299151; 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=k83OoPKOPYpAPbl88JujGMi1jQaIm1fZQ0EFQUFQi4Y=; b=CKFuuzqFvmDRQNAZYs/axnWIPZS2DgE+rCccRo+qB9zmPOfGfBlllRI+2pjI8IEgZaDM/v 3LL46/6eV7sJjab9Hu+tCS9pQXHGhd5M+NOJkuhkpkcAWN0bRmsLcQ5X7SlVPZcDVGYvnO vW+ns6zX2sVsKny48UeSJzU+UrYSQZNS28AlfGei0ekbXadhLVhFMtA1Qnuegl4cgSpKPf G3rcYtBSN8hSLkPsGmHLzAn9u4gpciJAAB1zToOjMybTMH35WGuULxfhhESnon+DFuyTaX 5qRfCkicaFPRmJE2FghbcwL6djerm36Ld2YvhdK8UWUGHBd0vaTGZxfW1sCQxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661299151; a=rsa-sha256; cv=none; b=HavnncpN/eRgMC9jYMxQftHvSsl7y5RcTwKApc5Tye7Ja5EgRtp1reyPwuzWzRMJCqWVOx uc3JQDQkLH+nkzm9goQAwtdQxWDpg994u/ATqc4yRRJkEWQfZohUc3tJJR27XjkExI7B8k 5C7nVYfoBNoDXZegQkfVWOVbpkqbRwu4nu6Pnic/1KdsVYlaGA/ZCFxdhEf+DalA4cTmMD SueK0K3wgGoUriLae4XcKbXoWKRrwBTx4ZQ6HBmEmlHh1/K+Zopk6V+6A8K34Lt3UtmeDv mzjPy5FiPSyWVd5B4TVmRLRFMZ9VIag/7CHMFPo6IiCfqA9UvPEn06hcJ/77lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4b8feb5d61ace6d94cafb03288a53694e84c2e53 commit 4b8feb5d61ace6d94cafb03288a53694e84c2e53 Author: Mark Johnston AuthorDate: 2022-08-23 23:48:06 +0000 Commit: Mark Johnston CommitDate: 2022-08-23 23:48:06 +0000 tests: Handle platforms with MAXPAGESIZES < 2 Reported by: Jenkins Fixes: 1dfa8b73f6a6 ("tests: Add more shared shadow regression tests") --- tests/sys/vm/shared_shadow_inval_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/sys/vm/shared_shadow_inval_test.c b/tests/sys/vm/shared_shadow_inval_test.c index 8cd986b8ed99..c3a62296ffa4 100644 --- a/tests/sys/vm/shared_shadow_inval_test.c +++ b/tests/sys/vm/shared_shadow_inval_test.c @@ -365,7 +365,8 @@ do_shared_shadow_inval(bool lazy_cow) ATF_REQUIRE(sysctllen >= sizeof(size_t)); pagesize = pagesizes[0]; - largepagesize = sysctllen >= 2 * sizeof(size_t) && pagesizes[1] != 0 ? + largepagesize = MAXPAGESIZES >= 2 && + sysctllen >= 2 * sizeof(size_t) && pagesizes[1] != 0 ? pagesizes[1] : 2 * 1024 * 1024; for (unsigned int i = 0; i <= FLAG_MASK; i++) {