Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@gmail.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
0338c838 ea2c3f6f

+5 -5
+1 -1
tools/testing/selftests/proc/proc-loadavg-001.c
··· 30 30 31 31 if (unshare(CLONE_NEWPID) == -1) { 32 32 if (errno == ENOSYS || errno == EPERM) 33 - return 2; 33 + return 4; 34 34 return 1; 35 35 } 36 36
+1 -1
tools/testing/selftests/proc/proc-self-map-files-002.c
··· 63 63 p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); 64 64 if (p == MAP_FAILED) { 65 65 if (errno == EPERM) 66 - return 2; 66 + return 4; 67 67 return 1; 68 68 } 69 69
+1 -1
tools/testing/selftests/proc/proc-self-syscall.c
··· 39 39 fd = open("/proc/self/syscall", O_RDONLY); 40 40 if (fd == -1) { 41 41 if (errno == ENOENT) 42 - return 2; 42 + return 4; 43 43 return 1; 44 44 } 45 45
+1 -1
tools/testing/selftests/proc/proc-self-wchan.c
··· 27 27 fd = open("/proc/self/wchan", O_RDONLY); 28 28 if (fd == -1) { 29 29 if (errno == ENOENT) 30 - return 2; 30 + return 4; 31 31 return 1; 32 32 } 33 33
+1 -1
tools/testing/selftests/proc/read.c
··· 126 126 127 127 d = opendir("/proc"); 128 128 if (!d) 129 - return 2; 129 + return 4; 130 130 f(d, 0); 131 131 return 0; 132 132 }