linux/tools/testing/selftests/proc
Alexey Dobriyan 5cc81d5c81 proc: fixup uptime selftest
syscall(3) returns -1 and sets errno on error, unlike "syscall"
instruction.

Systems which have <= 32/64 CPUs are unaffected. Test won't bounce
to all CPUs before completing if there are more of them.

Link: https://lkml.kernel.org/r/Y1bUiT7VRXlXPQa1@p183
Fixes: 1f5bd05476 ("proc: selftests: test /proc/uptime")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-11-18 13:55:08 -08:00
..
.gitignore proc: test how it holds up with mapping'less process 2022-10-11 18:51:11 -07:00
config
fd-001-lookup.c
fd-002-posix-eq.c
fd-003-kthread.c
Makefile proc: test how it holds up with mapping'less process 2022-10-11 18:51:11 -07:00
proc-empty-vm.c proc: test how it holds up with mapping'less process 2022-10-11 18:51:11 -07:00
proc-fsconfig-hidepid.c proc: use human-readable values for hidepid 2020-04-22 10:51:22 -05:00
proc-loadavg-001.c selftests: proc: fix warning: _GNU_SOURCE redefined 2020-11-05 10:08:14 -07:00
proc-multiple-procfs.c proc: allow to mount many instances of proc in one pid namespace 2020-04-22 10:51:21 -05:00
proc-pid-vm.c proc: save LOC in vsyscall test 2022-09-11 21:55:06 -07:00
proc-self-map-files-001.c
proc-self-map-files-002.c selftests: proc: Make va_max 1MB 2019-11-07 14:52:57 -07:00
proc-self-syscall.c selftests: proc: fix warning: _GNU_SOURCE redefined 2020-11-05 10:08:14 -07:00
proc-self-wchan.c
proc-subset-pid.c selftests: proc: test subset=pid 2021-05-06 19:24:11 -07:00
proc-tid0.c procfs: do not list TID 0 in /proc/<pid>/task 2021-11-09 10:02:48 -08:00
proc-uptime-001.c
proc-uptime-002.c proc: fixup uptime selftest 2022-11-18 13:55:08 -08:00
proc-uptime.h
proc.h
read.c proc: mandate ->proc_lseek in "struct proc_ops" 2021-05-06 19:24:11 -07:00
self.c
setns-dcache.c
setns-sysvipc.c
thread-self.c