getcpu: Add testcase for EFAULT
PATCH v5 1/1 getcpu: Add testcase for EFAULT
Add a testcase with the arguments point to an invalid address.
Signed-off-by Ma Xinjian <[email protected]>
--- runtest/syscalls | 1 + testcases/kernel/syscalls/getcpu/.gitignore | 1 + testcases/kernel/syscalls/getcpu/getcpu02.c | 72 +++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 testcases/kernel/syscalls/getcpu/getcpu02.c
runtest/syscalls +1 -0
@@ -448,6 +448,7 @@ futimesat01 futimesat01 getcontext01 getcontext01 getcpu01 getcpu01 +getcpu02 getcpu02 getcwd01 getcwd01 getcwd02 getcwd02
testcases/kernel/syscalls/getcpu/.gitignore +1 -0
@@ -1 +1,2 @@ /getcpu01 +/getcpu02
testcases/kernel/syscalls/getcpu/getcpu02.c new file +72 -0
72 lines not on this page · raw message
Signature · 5 lines
2.42.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp