mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Add tests for the new CLONE_AUTOREAP clone3() flag: - autoreap_without_pidfd: CLONE_AUTOREAP without CLONE_PIDFD works (fire-and-forget) - autoreap_rejects_exit_signal: CLONE_AUTOREAP with non-zero exit_signal fails - autoreap_rejects_parent: CLONE_AUTOREAP with CLONE_PARENT fails - autoreap_rejects_thread: CLONE_AUTOREAP with CLONE_THREAD fails - autoreap_basic: child exits, pidfd poll works, PIDFD_GET_INFO returns correct exit code, waitpid() returns -ECHILD - autoreap_signaled: child killed by signal, exit info correct via pidfd - autoreap_reparent: autoreap grandchild reparented to subreaper still auto-reaps - autoreap_multithreaded: autoreap process with sub-threads auto-reaps after last thread exits - autoreap_no_inherit: grandchild forked without CLONE_AUTOREAP becomes a regular zombie Link: https://patch.msgid.link/20260226-work-pidfs-autoreap-v5-4-d148b984a989@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
13 lines
415 B
Makefile
13 lines
415 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
CFLAGS += -g $(KHDR_INCLUDES) $(TOOLS_INCLUDES) -pthread -Wall
|
|
|
|
TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \
|
|
pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test \
|
|
pidfd_file_handle_test pidfd_bind_mount pidfd_info_test \
|
|
pidfd_xattr_test pidfd_setattr_test pidfd_autoreap_test
|
|
|
|
TEST_GEN_PROGS_EXTENDED := pidfd_exec_helper
|
|
|
|
include ../lib.mk
|
|
|