selftests/powerpc: Add a test of SEGV error behaviour
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jan 2018 10:37:36 +0000 (21:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jan 2018 05:49:24 +0000 (16:49 +1100)
commit6ed361586b323e576fd5536078fe9f2ee7906e61
tree2eac1cb753abdbae19852cea8595557f7f142341
parent5769beaf180a892c3fea92937954727fb912bded
selftests/powerpc: Add a test of SEGV error behaviour

Add a test case of the error code reported when we take a SEGV on a
mapped but inaccessible area. We broke this recently.

Based on a test case from John Sperbeck <jsperbeck@google.com>.

Acked-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/mm/.gitignore
tools/testing/selftests/powerpc/mm/Makefile
tools/testing/selftests/powerpc/mm/segv_errors.c [new file with mode: 0644]