tests: move common definitions and functions into pidfd.h
authorSuren Baghdasaryan <surenb@google.com>
Fri, 26 Jul 2019 16:22:25 +0000 (09:22 -0700)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 6 Aug 2019 17:39:45 +0000 (19:39 +0200)
commit2ec2f99abd2c75b507410c5def731fe1b483271b
tree5936523fc6f30d651c9f33d7798e894f2fb8862a
parente63f3085709e92bd876e2977a07099d56bbda1c2
tests: move common definitions and functions into pidfd.h

Move definitions and functions used across different pidfd tests into
pidfd.h header.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Christian Brauner <christian@brauner.io>
Link: https://lore.kernel.org/r/20190726162226.252750-1-surenb@google.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/pidfd/pidfd.h
tools/testing/selftests/pidfd/pidfd_open_test.c