]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Abort load_unaligned_zeropad on unhandled SEGV
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Nov 2016 04:01:07 +0000 (15:01 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 00:11:51 +0000 (11:11 +1100)
commitce395e2441796ea6f2e535c3a33aac0466a16644
treee0928dfff1be1ee1f462c2918a5cddceb1ea9175
parent06bbcf85b176339bb296ef26d56a1f805e753dae
selftests/powerpc: Abort load_unaligned_zeropad on unhandled SEGV

If the load unaligned zeropad test takes a SEGV which can't be handled,
we increment segv_error, print the offending NIP and then return without
taking any further action. In almost all cases this means we'll just
take the SEGV again, and loop eternally spamming the console.

Instead just abort(), it's a fatal error in the test. The test harness
will notice that the child died and print a nice message for us.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c