selftests/powerpc: Add TM signal return test
authorMichael Neuling <mikey@neuling.org>
Fri, 20 Nov 2015 04:15:33 +0000 (15:15 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Dec 2015 09:41:48 +0000 (20:41 +1100)
commit25007a69e852389985ee98235e76d740d4821c6c
tree16dd7664889f9bcec4d30fafe234a32a734520cc
parentb319ee8445961c5f7b2fd199c0ef99c418ee2d4a
selftests/powerpc: Add TM signal return test

Test the kernel's signal return code to ensure that it doesn't crash
when both the transactional and suspend MSR bits are set in the signal
context.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Tested-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
[mpe: Skip if we don't have TM]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/tm/.gitignore
tools/testing/selftests/powerpc/tm/Makefile
tools/testing/selftests/powerpc/tm/tm-signal-msr-resv.c [new file with mode: 0644]