svn commit: r368570 - head/tests/sys/posixshm
Ryan Libby
rlibby at FreeBSD.org
Fri Dec 11 22:52:26 UTC 2020
Author: rlibby
Date: Fri Dec 11 22:52:20 2020
New Revision: 368570
URL: https://svnweb.freebsd.org/changeset/base/368570
Log:
posixshm_test.c: remove tautological checks
Reviewed by: kib, markj
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D27564
Modified:
head/tests/sys/posixshm/posixshm_test.c
Modified: head/tests/sys/posixshm/posixshm_test.c
==============================================================================
--- head/tests/sys/posixshm/posixshm_test.c Fri Dec 11 22:52:16 2020 (r368569)
+++ head/tests/sys/posixshm/posixshm_test.c Fri Dec 11 22:52:20 2020 (r368570)
@@ -1322,7 +1322,6 @@ ATF_TC_BODY(largepage_mlock, tc)
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);
- ATF_REQUIRE(max_wired >= 0);
sz = sizeof(wired);
error = sysctlbyname("vm.stats.vm.v_user_wire_count", &wired, &sz, NULL,
@@ -1330,7 +1329,6 @@ ATF_TC_BODY(largepage_mlock, tc)
ATF_REQUIRE_MSG(error == 0,
"sysctlbyname(vm.stats.vm.v_user_wire_count) failed; error=%d",
errno);
- ATF_REQUIRE(wired >= 0);
pscnt = pagesizes(ps);
for (int i = 1; i < pscnt; i++) {
More information about the svn-src-head
mailing list