Skip to content

Commit 0338c83

Browse files
Alexey Dobriyantorvalds
authored andcommitted
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>
1 parent ea2c3f6 commit 0338c83

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tools/testing/selftests/proc/proc-loadavg-001.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main(void)
3030

3131
if (unshare(CLONE_NEWPID) == -1) {
3232
if (errno == ENOSYS || errno == EPERM)
33-
return 2;
33+
return 4;
3434
return 1;
3535
}
3636

tools/testing/selftests/proc/proc-self-map-files-002.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int main(void)
6363
p = mmap((void *)va, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0);
6464
if (p == MAP_FAILED) {
6565
if (errno == EPERM)
66-
return 2;
66+
return 4;
6767
return 1;
6868
}
6969

tools/testing/selftests/proc/proc-self-syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int main(void)
3939
fd = open("/proc/self/syscall", O_RDONLY);
4040
if (fd == -1) {
4141
if (errno == ENOENT)
42-
return 2;
42+
return 4;
4343
return 1;
4444
}
4545

tools/testing/selftests/proc/proc-self-wchan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int main(void)
2727
fd = open("/proc/self/wchan", O_RDONLY);
2828
if (fd == -1) {
2929
if (errno == ENOENT)
30-
return 2;
30+
return 4;
3131
return 1;
3232
}
3333

tools/testing/selftests/proc/read.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ int main(void)
126126

127127
d = opendir("/proc");
128128
if (!d)
129-
return 2;
129+
return 4;
130130
f(d, 0);
131131
return 0;
132132
}

0 commit comments

Comments
 (0)