selftests/powerpc: context_switch: Fix pthread errors
authorCyril Bur <cyrilbur@gmail.com>
Tue, 4 Jul 2017 01:21:15 +0000 (11:21 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Oct 2017 08:41:56 +0000 (19:41 +1100)
commit89aca4753eb451a48f65a12b02640365dba3d4ea
tree3804871858d88e3c99d3209a2cf59440549c9bde
parent8f6a90421c7637984fb352da079fb13172176bfd
selftests/powerpc: context_switch: Fix pthread errors

Turns out pthreads returns an errno and doesn't set errno. This doesn't
play well with perror().

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/benchmarks/context_switch.c