2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools/testing/selftests/pidfd
Oleg Nesterov 8661bb9c71
selftests/pidfd: fixes syscall number defines
I had to spend some (a lot;) time to understand why pidfd_info_test
(and more) fails with my patch under qemu on my machine ;) Until I
applied the patch below.

I think it is a bad idea to do the things like

	#ifndef __NR_clone3
	#define __NR_clone3 -1
	#endif

because this can hide a problem. My working laptop runs Fedora-23 which
doesn't have __NR_clone3/etc in /usr/include/. So "make" happily succeeds,
but everything fails and it is not clear why.

Link: https://lore.kernel.org/r/20250323174518.GB834@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-03-25 14:59:05 +01:00
..
.gitignore selftests/pidfd: add seventh PIDFD_INFO_EXIT selftest 2025-03-05 13:26:21 +01:00
config selftests/pidfd: Fix config for pidfd_setns_test 2024-05-11 19:18:39 +02:00
Makefile selftests/pidfd: add seventh PIDFD_INFO_EXIT selftest 2025-03-05 13:26:21 +01:00
pidfd_bind_mount.c selftests: add pidfd bind-mount tests 2024-12-22 11:03:13 +01:00
pidfd_exec_helper.c selftests/pidfd: add seventh PIDFD_INFO_EXIT selftest 2025-03-05 13:26:21 +01:00
pidfd_fdinfo_test.c selftests/pidfd: fix header inclusion 2025-03-05 13:26:20 +01:00
pidfd_file_handle_test.c selftests/pidfd: add pidfs file handle selftests 2024-12-17 09:16:18 +01:00
pidfd_getfd_test.c selftests: add ESRCH tests for pidfd_getfd() 2024-02-07 15:48:31 +01:00
pidfd_info_test.c selftests/pidfd: third test for multi-threaded exec polling 2025-03-20 15:32:43 +01:00
pidfd_open_test.c selftests/pidfd: expand common pidfd header 2025-03-05 13:26:20 +01:00
pidfd_poll_test.c selftests: pidfd: ksft_exit functions do not return 2024-05-06 13:57:20 -06:00
pidfd_setns_test.c selftests/pidfd: expand common pidfd header 2025-03-05 13:26:20 +01:00
pidfd_test.c selftests/pidfd: add tests for PIDFD_SELF_* 2025-02-05 15:14:55 +01:00
pidfd_wait.c selftests/pidfd: add pidfs file handle selftests 2024-12-17 09:16:18 +01:00
pidfd.h selftests/pidfd: fixes syscall number defines 2025-03-25 14:59:05 +01:00