The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5f5910ba3826435391d3e5b9ba9155376ec0b39d
commit 5f5910ba3826435391d3e5b9ba9155376ec0b39d Author: Konstantin Belousov <[email protected]> AuthorDate: 2026-08-28 08:35:54 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-08-28 11:52:55 +0000 tests/sys/kern/pdwait: adjust test for the addition of CAP_PTRACE Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58586 --- tests/sys/kern/pdwait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/pdwait.c b/tests/sys/kern/pdwait.c index 8489dd4ef894..aae0891129e7 100644 --- a/tests/sys/kern/pdwait.c +++ b/tests/sys/kern/pdwait.c @@ -206,7 +206,7 @@ ATF_TC_BODY(enotcap, tc) CAP_ALL(&rights); cap_rights_clear(&rights, CAP_PDWAIT); - pid = pdfork(&fdp, 0); + pid = pdfork(&fdp, PD_PTRACE_CAP); if (pid == 0) _exit(42); ATF_REQUIRE_MSG(pid >= 0, "pdfork failed: %s", strerror(errno));
