linux/tools/testing/selftests/exec
Michael Ellerman 9a0b57451a 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: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: David Drysdale <drysdale@google.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2015-03-11 10:15:19 -06:00
..
.gitignore syscalls: add selftest for execveat(2) 2014-12-13 12:42:51 -08:00
execveat.c selftests/exec: Check if the syscall exists and bail if not 2015-03-11 10:15:19 -06:00
Makefile syscalls: add selftest for execveat(2) 2014-12-13 12:42:51 -08:00