Skip to contentSkip to conversation

proc: shotgun test read/readdir/readlink + a little write

PATCH New Alexey Dobriyan 1 participant 1 message Mar 15, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 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