OSDN Git Service

selftests: enhance membarrier syscall test
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 25 Aug 2015 04:32:01 +0000 (14:32 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Aug 2015 07:19:02 +0000 (17:19 +1000)
commit44c94a94400b28d7858d89c70568a81bb651c777
tree6e99bf2ad7aa8b46c68cdf1ab99099c9f2d3b02c
parent435251ef379db143c980365f0ded6bd628ed4ac5
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 <mathieu.desnoyers@efficios.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Pranith Kumar <bobby.prani@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/membarrier/membarrier_test.c