proc: fixup uptime selftest
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 24 Oct 2022 18:08:09 +0000 (21:08 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Nov 2022 21:55:08 +0000 (13:55 -0800)
commit5cc81d5c81af0dee54da9a67a3ebe4be076a13db
treecbea24d7d606cc79b5c2748599f46340247bd58a
parent33cd3003644b2f64a1b1c27e10ba2ed55792e1cc
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: 1f5bd0547654 ("proc: selftests: test /proc/uptime")
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/proc-uptime-002.c