Skip to contentSkip to conversation

getcpu: Add testcase for EFAULT

PATCH New Ma Xinjian via ltp 1 participant 1 message Aug 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 getcpu: Add testcase for EFAULT

Add a testcase with the arguments point to an invalid address.

---
 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
index b8728c1c5..1537b5022 100644
@@ -448,6 +448,7 @@ futimesat01 futimesat01
 getcontext01 getcontext01
 
 getcpu01 getcpu01
+getcpu02 getcpu02
 
 getcwd01 getcwd01
 getcwd02 getcwd02
testcases/kernel/syscalls/getcpu/.gitignore +1 -0
index 31fec5d35..cd3022bbb 100644
@@ -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