diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-02-03 14:53:08 +1100 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-11 10:15:19 -0600 |
commit | 9a0b57451ae8142c74d65bddb6d7765818babbed (patch) | |
tree | 39b95b227b7a917319267520370381c77edb9e4c /block/deadline-iosched.c | |
parent | 9eccca0843205f87c00404b663188b88eb248051 (diff) | |
download | linux-9a0b57451ae8142c74d65bddb6d7765818babbed.tar.bz2 |
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>
Diffstat (limited to 'block/deadline-iosched.c')
0 files changed, 0 insertions, 0 deletions