proc: test /proc/self symlink

There are plans to change how /proc/self result is calculated,
for that a test is necessary.

Use direct system call because of this whole getpid caching story.

Link: http://lkml.kernel.org/r/20180627195103.GB18113@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan
2018-08-21 21:54:16 -07:00
committed by Linus Torvalds
parent bdf228a272
commit 61d47c4e71
4 changed files with 49 additions and 0 deletions

View File

@@ -9,3 +9,4 @@
/proc-uptime-001
/proc-uptime-002
/read
/self