Skip to content

Commit

Permalink
proc: return exit code 4 for skipped tests
Browse files Browse the repository at this point in the history
Test harness uses 4 for SKIP, not 2.

Link: http://lkml.kernel.org/r/20190108193108.GA12259@avx2
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and torvalds committed Mar 6, 2019
1 parent ea2c3f6 commit 0338c83
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/testing/selftests/proc/proc-loadavg-001.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(void)

if (unshare(CLONE_NEWPID) == -1) {
if (errno == ENOSYS || errno == EPERM)
return 2;
return 4;
return 1;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/proc/proc-self-map-files-002.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/proc/proc-self-syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/proc/proc-self-wchan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/testing/selftests/proc/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ int main(void)

d = opendir("/proc");
if (!d)
return 2;
return 4;
f(d, 0);
return 0;
}

0 comments on commit 0338c83

Please sign in to comment.