proc: selftests: test /proc/uptime
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 10 Apr 2018 23:43:28 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commit1f5bd0547654ada423b184e22f320d76c0fac49e
tree0d305b2d1f713af5bf4b9b534cb253183a58e716
parent4f1134370a29a5f2d0f4b4be4c5e2fddd38f0f9d
proc: selftests: test /proc/uptime

The only tests I could come up with for /proc/uptime are:
 - test that values increase monotonically for 1 second,
 - bounce around CPUs and test the same thing.

Avoid glibc like plague for affinity given patches like this:
https://marc.info/?l=linux-kernel&m=152130031912594&w=4

Link: http://lkml.kernel.org/r/20180317165235.GB3445@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-uptime-001.c [new file with mode: 0644]
tools/testing/selftests/proc/proc-uptime-002.c [new file with mode: 0644]
tools/testing/selftests/proc/proc-uptime.h [new file with mode: 0644]