Skip to content
Commit 9a0b5745 authored by Michael Ellerman's avatar Michael Ellerman Committed by Shuah Khan
Browse files

selftests/exec: Check if the syscall exists and bail if not



On systems which don't implement sys_execveat(), this test produces a
lot of output.

Add a check at the beginning to see if the syscall is present, and if
not just note one error and return.

When we run on a system that doesn't implement the syscall we will get
ENOSYS back from the kernel, so change the logic that handles
__NR_execveat not being defined to also use ENOSYS rather than -ENOSYS.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Acked-by: default avatarDavid Drysdale <drysdale@google.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 9eccca08
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment