proc: shotgun test read/readdir/readlink + a little write
Subsystems (2)
PATCH 1/1 proc: shotgun test read/readdir/readlink + a little write
Interact with nearly everything in /proc.
Hopefully memleak checkers and KASAN will find something.
Signed-off-by Alexey Dobriyan <[email protected]>
---
tools/testing/selftests/proc/.gitignore | 1 tools/testing/selftests/proc/Makefile | 1 tools/testing/selftests/proc/read.c | 146 ++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+)
tools/testing/selftests/proc/.gitignore +1 -0
@@ -4,3 +4,4 @@ /proc-self-map-files-002 /proc-self-syscall /proc-self-wchan +/read
tools/testing/selftests/proc/Makefile +1 -0
@@ -7,5 +7,6 @@ TEST_GEN_PROGS += proc-self-map-files-001 TEST_GEN_PROGS += proc-self-map-files-002 TEST_GEN_PROGS += proc-self-syscall TEST_GEN_PROGS += proc-self-wchan +TEST_GEN_PROGS += read include ../lib.mk
new file mode 100644
tools/testing/selftests/proc/read.c new file +146 -0
146 lines not on this page · raw message