selftests: pidfd: skip test on kcmp() ENOSYS
authorTommi Rantala <tommi.t.rantala@nokia.com>
Thu, 8 Oct 2020 12:26:26 +0000 (15:26 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 27 Oct 2020 23:01:45 +0000 (17:01 -0600)
commitb5ec9fe5be5e02e7db9e79aaa9a1ea7a3419d0b5
tree078beaeb014bf5b92804ee76ca55ae7f53b1728c
parent0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8
selftests: pidfd: skip test on kcmp() ENOSYS

Skip test if kcmp() is not available, for example if kernel is compiled
without CONFIG_CHECKPOINT_RESTORE=y.

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/pidfd/pidfd_getfd_test.c