proc: test /proc/self/wchan
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 10 Apr 2018 23:31:45 +0000 (16:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commit9cd65655585523adecd65b750e1537cdea84718e
treea40a0b1fc16c184da67e4e3e27f564ca2d67798f
parent835b94e05c92e6e8df48112770e624cee192a057
proc: test /proc/self/wchan

This patch starts testing /proc.  Many more tests to come (I promise).

Read from /proc/self/wchan should always return "0" as current is in
TASK_RUNNING state while reading /proc/self/wchan.

Link: http://lkml.kernel.org/r/20180226212006.GA742@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/proc/.gitignore [new file with mode: 0644]
tools/testing/selftests/proc/Makefile [new file with mode: 0644]
tools/testing/selftests/proc/config [new file with mode: 0644]
tools/testing/selftests/proc/proc-self-wchan.c [new file with mode: 0644]