]> git.karo-electronics.de Git - linux-beck.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)
commit06236f4efb926aa433e2cb3e36e8467f4a0e42c0
treee0928dfff1be1ee1f462c2918a5cddceb1ea9175
parent9f751b82b491d06c6438066b511d44fa4cc49168
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