Index: tests/sys/posixshm/posixshm_test.c =================================================================== --- tests/sys/posixshm/posixshm_test.c +++ tests/sys/posixshm/posixshm_test.c @@ -1005,6 +1005,7 @@ memset(zeroes, 0, PAGE_SIZE); pscnt = pagesizes(ps); + for (int i = 1; i < pscnt; i++) { fd = shm_open_large(i, SHM_LARGEPAGE_ALLOC_DEFAULT, ps[i]); @@ -1056,6 +1057,7 @@ int error, fd, pscnt; pscnt = pagesizes(ps); + (void) pscnt; fd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0); ATF_REQUIRE_MSG(fd >= 0, "shm_open failed; error=%d", errno); @@ -1322,15 +1324,23 @@ error = sysctlbyname("vm.max_user_wired", &max_wired, &sz, NULL, 0); ATF_REQUIRE_MSG(error == 0, "sysctlbyname(vm.max_user_wired) failed; error=%d", errno); + /* + * Comment this and the wired check out; they're both unsigned + * longs which by definition need to be >= 0. Compilers doing + * type checking will assert on this. + */ +#if 0 ATF_REQUIRE(max_wired >= 0); - +#endif sz = sizeof(wired); error = sysctlbyname("vm.stats.vm.v_user_wire_count", &wired, &sz, NULL, 0); ATF_REQUIRE_MSG(error == 0, "sysctlbyname(vm.stats.vm.v_user_wire_count) failed; error=%d", errno); +#if 0 ATF_REQUIRE(wired >= 0); +#endif pscnt = pagesizes(ps); for (int i = 1; i < pscnt; i++) {