selftests/powerpc: Properly handle failure in switch_endian_test
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:57:27 +0000 (11:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2020 12:24:13 +0000 (22:24 +1000)
commit003d6f5fd2cc3b529f3e6c529bc4bb0792930212
tree9b07b98965ef707ed06158b3303d53bd71541044
parent09275d717d1b2d7d5ed91f2140bb34246514a1b4
selftests/powerpc: Properly handle failure in switch_endian_test

On older CPUs the switch_endian() syscall doesn't work. Currently that
causes the switch_endian_test to just crash. Instead detect the
failure and properly exit with a failure message.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819015727.1977134-9-mpe@ellerman.id.au
tools/testing/selftests/powerpc/switch_endian/switch_endian_test.S