The patch titled Subject: proc: return exit code 4 for skipped tests has been added to the -mm tree. Its filename is proc-return-exit-code-4-for-skipped-tests.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-return-exit-code-4-for-skipped-tests.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-return-exit-code-4-for-skipped-tests.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexey Dobriyan <adobriyan@xxxxxxxxx> Subject: proc: return exit code 4 for skipped tests Test harness uses 4 for SKIP, not 2. Link: http://lkml.kernel.org/r/20190108193108.GA12259@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/proc/proc-loadavg-001.c | 2 +- tools/testing/selftests/proc/proc-self-map-files-002.c | 2 +- tools/testing/selftests/proc/proc-self-syscall.c | 2 +- tools/testing/selftests/proc/proc-self-wchan.c | 2 +- tools/testing/selftests/proc/read.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) --- a/tools/testing/selftests/proc/proc-loadavg-001.c~proc-return-exit-code-4-for-skipped-tests +++ a/tools/testing/selftests/proc/proc-loadavg-001.c @@ -30,7 +30,7 @@ int main(void) if (unshare(CLONE_NEWPID) == -1) { if (errno == ENOSYS || errno == EPERM) - return 2; + return 4; return 1; } --- a/tools/testing/selftests/proc/proc-self-map-files-002.c~proc-return-exit-code-4-for-skipped-tests +++ a/tools/testing/selftests/proc/proc-self-map-files-002.c @@ -63,7 +63,7 @@ int main(void) p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); if (p == MAP_FAILED) { if (errno == EPERM) - return 2; + return 4; return 1; } --- a/tools/testing/selftests/proc/proc-self-syscall.c~proc-return-exit-code-4-for-skipped-tests +++ a/tools/testing/selftests/proc/proc-self-syscall.c @@ -39,7 +39,7 @@ int main(void) fd = open("/proc/self/syscall", O_RDONLY); if (fd == -1) { if (errno == ENOENT) - return 2; + return 4; return 1; } --- a/tools/testing/selftests/proc/proc-self-wchan.c~proc-return-exit-code-4-for-skipped-tests +++ a/tools/testing/selftests/proc/proc-self-wchan.c @@ -27,7 +27,7 @@ int main(void) fd = open("/proc/self/wchan", O_RDONLY); if (fd == -1) { if (errno == ENOENT) - return 2; + return 4; return 1; } --- a/tools/testing/selftests/proc/read.c~proc-return-exit-code-4-for-skipped-tests +++ a/tools/testing/selftests/proc/read.c @@ -126,7 +126,7 @@ int main(void) d = opendir("/proc"); if (!d) - return 2; + return 4; f(d, 0); return 0; } _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are proc-fix-proc-net-after-setns2.patch proc-return-exit-code-4-for-skipped-tests.patch