proc: add selftest for last field of /proc/loadavg
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 10 Apr 2018 23:42:23 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commit5de3d401b79486b9323e1be30e3a34c2437b8800
tree44ff6cd7b07ecc1ff6c222be99537327d1595b14
parentfe079a5e102cc59b6c2b66a41e39c624ce284519
proc: add selftest for last field of /proc/loadavg

Test fork counter formerly known as ->last_pid, the only part of
/proc/loadavg which can be tested.

Testing in init pid namespace is not reliable because of background
activity.

Link: http://lkml.kernel.org/r/20180311152241.GA26247@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/proc/.gitignore
tools/testing/selftests/proc/Makefile
tools/testing/selftests/proc/proc-loadavg-001.c [new file with mode: 0644]