Commit 92a5e1fd authored by Sandipan Das's avatar Sandipan Das Committed by Michael Ellerman

selftests/powerpc: Fix exit status of pkey tests

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: 1addb644 ("selftests/powerpc: Add test for execute-disabled pkeys")
Fixes: c27f2fd1 ("selftests/powerpc: Add test for pkey siginfo verification")
Reported-by: default avatarEirik Fuller <efuller@redhat.com>
Signed-off-by: default avatarSandipan Das <sandipan@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210118093145.10134-1-sandipan@linux.ibm.com
parent 41131a5e
......@@ -290,5 +290,5 @@ static int test(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)
{
test_harness(test, "pkey_siginfo");
return test_harness(test, "pkey_siginfo");
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment