-
- Downloads
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>
Showing
- tools/testing/selftests/proc/.gitignore 2 additions, 0 deletionstools/testing/selftests/proc/.gitignore
- tools/testing/selftests/proc/Makefile 2 additions, 0 deletionstools/testing/selftests/proc/Makefile
- tools/testing/selftests/proc/proc-uptime-001.c 45 additions, 0 deletionstools/testing/selftests/proc/proc-uptime-001.c
- tools/testing/selftests/proc/proc-uptime-002.c 79 additions, 0 deletionstools/testing/selftests/proc/proc-uptime-002.c
- tools/testing/selftests/proc/proc-uptime.h 74 additions, 0 deletionstools/testing/selftests/proc/proc-uptime.h
Loading
Please register or sign in to comment