aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/exec/execveat.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/exec/execveat.c')
-rw-r--r--tools/testing/selftests/exec/execveat.c6
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
23static char longpath[2 * PATH_MAX] = ""; 25static char longpath[2 * PATH_MAX] = "";
24static char *envp[] = { "IN_TEST=yes", NULL, NULL }; 26static char *envp[] = { "IN_TEST=yes", NULL, NULL };
25static char *argv[] = { "execveat", "99", NULL }; 27static 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 */