mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 09:31:09 +00:00
selftests/powerpc: Fix exit status of pkey tests
commit92a5e1fdb2
upstream. Since main() does not return a value explicitly, the return values from FAIL_IF() conditions are ignored and the tests can still pass irrespective of failures. This makes sure that we always explicitly return the correct test exit status. Fixes:1addb64447
("selftests/powerpc: Add test for execute-disabled pkeys") Fixes:c27f2fd170
("selftests/powerpc: Add test for pkey siginfo verification") Reported-by: Eirik Fuller <efuller@redhat.com> Signed-off-by: Sandipan Das <sandipan@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210118093145.10134-1-sandipan@linux.ibm.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
55c869b132
commit
7e2bf98d53
2 changed files with 2 additions and 2 deletions
|
@ -290,5 +290,5 @@ static int test(void)
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
test_harness(test, "pkey_exec_prot");
|
return test_harness(test, "pkey_exec_prot");
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,5 +329,5 @@ static int test(void)
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
test_harness(test, "pkey_siginfo");
|
return test_harness(test, "pkey_siginfo");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue