diff options
Diffstat (limited to 'tools/testing/selftests/exec/execveat.c')
-rw-r--r-- | tools/testing/selftests/exec/execveat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/testing/selftests/exec/execveat.c b/tools/testing/selftests/exec/execveat.c index 67cd4597db2b..47cbf54d0801 100644 --- a/tools/testing/selftests/exec/execveat.c +++ b/tools/testing/selftests/exec/execveat.c | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <string.h> | 20 | #include <string.h> |
21 | #include <unistd.h> | 21 | #include <unistd.h> |
22 | 22 | ||
23 | #include "../kselftest.h" | ||
24 | |||
23 | static char longpath[2 * PATH_MAX] = ""; | 25 | static char longpath[2 * PATH_MAX] = ""; |
24 | static char *envp[] = { "IN_TEST=yes", NULL, NULL }; | 26 | static char *envp[] = { "IN_TEST=yes", NULL, NULL }; |
25 | static char *argv[] = { "execveat", "99", NULL }; | 27 | static char *argv[] = { "execveat", "99", NULL }; |
@@ -249,8 +251,8 @@ static int run_tests(void) | |||
249 | errno = 0; | 251 | errno = 0; |
250 | execveat_(-1, NULL, NULL, NULL, 0); | 252 | execveat_(-1, NULL, NULL, NULL, 0); |
251 | if (errno == ENOSYS) { | 253 | if (errno == ENOSYS) { |
252 | printf("[FAIL] ENOSYS calling execveat - no kernel support?\n"); | 254 | ksft_exit_skip( |
253 | return 1; | 255 | "ENOSYS calling execveat - no kernel support?\n"); |
254 | } | 256 | } |
255 | 257 | ||
256 | /* Change file position to confirm it doesn't affect anything */ | 258 | /* Change file position to confirm it doesn't affect anything */ |