selftests/powerpc: Add test to check if TM is disabled when it must be
PATCH 1/1 selftests/powerpc: Add test to check if TM is disabled when it must be
Add a TM test to check that when TM is not advertised by the OS (is disabled) a transaction can not really be started and generates a SIGILL, which is the right behavior in that case.
Signed-off-by Gustavo Romero <[email protected]>
--- tools/testing/selftests/powerpc/tm/.gitignore | 1 + tools/testing/selftests/powerpc/tm/Makefile | 2 +- tools/testing/selftests/powerpc/tm/tm-no-tm.c | 48 +++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/powerpc/tm/tm-no-tm.c
tools/testing/selftests/powerpc/tm/.gitignore +1 -0
@@ -20,3 +20,4 @@ tm-unavailable tm-trap tm-sigreturn tm-poison +tm-no-tm
tools/testing/selftests/powerpc/tm/Makefile +1 -1
@@ -5,7 +5,7 @@ SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \ - tm-signal-context-force-tm tm-poison tm-signal-pagefault + tm-signal-context-force-tm tm-poison tm-signal-pagefault tm-no-tm TEST_FILES := settings
tools/testing/selftests/powerpc/tm/tm-no-tm.c new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
2.7.4