proc: fixup uptime selftest
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 24 Oct 2022 18:08:09 +0000 (21:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:02 +0000 (13:14 +0100)
commit0df7d9ab6bcee9038f4b661a1aec215d28406d1d
tree170ffc58d5c1e18252223c2ab2350686aa7f07b0
parent07b8659b8e5b3a4a68cc9afc3e0577a7ef30f571
proc: fixup uptime selftest

[ Upstream commit 5cc81d5c81af0dee54da9a67a3ebe4be076a13db ]

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: 1f5bd0547654 ("proc: selftests: test /proc/uptime")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/proc/proc-uptime-002.c