selftests: enhance membarrier syscall test
authorMathieu Desnoyers <[email protected]>
Fri, 11 Sep 2015 20:07:45 +0000 (13:07 -0700)
committerLinus Torvalds <[email protected]>
Fri, 11 Sep 2015 22:21:34 +0000 (15:21 -0700)
commitc9946c4208a3725e116c05180d93154eb406d451
treecad660df31c23963e625e01bc531d3591b21bd04
parentb6d973441675222a4e6c8cad8208c2fe098a0b25
selftests: enhance membarrier syscall test

Update the membarrier syscall self-test to match the membarrier
interface.  Extend coverage of the interface.  Consider ENOSYS as a
"SKIP" test, since it is a valid configuration, but does not allow
testing the system call.

Signed-off-by: Mathieu Desnoyers <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Pranith Kumar <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/membarrier/membarrier_test.c