aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/clone3
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2025-03-23 18:45:18 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-25 14:59:05 +0100
commit8661bb9c717a07b7636224339fe8818b65db6ddf (patch)
tree80ce28ece6584224c6f72ea13bbf673cec5f40c6 /tools/testing/selftests/clone3
parent0b7747a5477eb22d041997bc085fa8d492fa9b96 (diff)
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>
Diffstat (limited to 'tools/testing/selftests/clone3')
-rw-r--r--tools/testing/selftests/clone3/clone3_selftests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/clone3/clone3_selftests.h b/tools/testing/selftests/clone3/clone3_selftests.h
index 3d2663fe50ba..eeca8005723f 100644
--- a/tools/testing/selftests/clone3/clone3_selftests.h
+++ b/tools/testing/selftests/clone3/clone3_selftests.h
@@ -16,7 +16,7 @@
#define ptr_to_u64(ptr) ((__u64)((uintptr_t)(ptr)))
#ifndef __NR_clone3
-#define __NR_clone3 -1
+#define __NR_clone3 435
#endif
struct __clone_args {