selftests: sync: differentiate between sync unsupported and access errors
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 22 Jul 2017 02:23:11 +0000 (20:23 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 28 Jul 2017 19:19:55 +0000 (13:19 -0600)
commitf6c44bbb79aa875d60dbd29ed1fa63923fb1fe81
treeb778390a9ec001c235fd17174d3f5efb4ebefaee
parent97e49368515830586b09ccadcdc567283b11afb9
selftests: sync: differentiate between sync unsupported and access errors

Sync test doesn't differentiate between sync unsupported and test run
by non-root user and treats both as unsupported cases.

Fix it to add handling for these two different scenarios.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
tools/testing/selftests/sync/sync_test.c