git: 3d268c19efb8 - main - Fix shared_shadow_inval_test when superpages are disabled
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Aug 2022 14:13:59 UTC
The branch main has been updated by vangyzen: URL: https://cgit.FreeBSD.org/src/commit/?id=3d268c19efb8b47dde1b5ac5bd367f2ff2d75c12 commit 3d268c19efb8b47dde1b5ac5bd367f2ff2d75c12 Author: Eric van Gyzen <vangyzen@FreeBSD.org> AuthorDate: 2022-08-19 20:05:19 +0000 Commit: Eric van Gyzen <vangyzen@FreeBSD.org> CommitDate: 2022-08-23 14:12:51 +0000 Fix shared_shadow_inval_test when superpages are disabled In that case, there is only one page size. Reviewed by: kib MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D36265 --- tests/sys/vm/shared_shadow_inval_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/vm/shared_shadow_inval_test.c b/tests/sys/vm/shared_shadow_inval_test.c index 6a1e693d3455..8cd986b8ed99 100644 --- a/tests/sys/vm/shared_shadow_inval_test.c +++ b/tests/sys/vm/shared_shadow_inval_test.c @@ -365,7 +365,7 @@ do_shared_shadow_inval(bool lazy_cow) ATF_REQUIRE(sysctllen >= sizeof(size_t)); pagesize = pagesizes[0]; - largepagesize = sysctllen >= 2 * sizeof(size_t) ? + largepagesize = sysctllen >= 2 * sizeof(size_t) && pagesizes[1] != 0 ? pagesizes[1] : 2 * 1024 * 1024; for (unsigned int i = 0; i <= FLAG_MASK; i++) {