linux/tools/testing/selftests/pidfd
Christian Brauner cd89597bbe
tests: add waitid() tests for non-blocking pidfds
Verify that the PIDFD_NONBLOCK flag works with pidfd_open() and that
waitid() with a non-blocking pidfd returns EAGAIN:

	TAP version 13
	1..3
	# Starting 3 tests from 1 test cases.
	#  RUN           global.wait_simple ...
	#            OK  global.wait_simple
	ok 1 global.wait_simple
	#  RUN           global.wait_states ...
	#            OK  global.wait_states
	ok 2 global.wait_states
	#  RUN           global.wait_nonblock ...
	#            OK  global.wait_nonblock
	ok 3 global.wait_nonblock
	# PASSED: 3 / 3 tests passed.
	# Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Link: https://lore.kernel.org/r/20200902102130.147672-5-christian.brauner@ubuntu.com
2020-09-04 13:48:57 +02:00
..
.gitignore selftests/pidfd: add pidfd setns tests 2020-05-13 11:41:22 +02:00
config selftests/pidfd: add pidfd setns tests 2020-05-13 11:41:22 +02:00
Makefile selftests/pidfd: add pidfd setns tests 2020-05-13 11:41:22 +02:00
pidfd_fdinfo_test.c test: verify fdinfo for pidfd of reaped process 2019-10-17 15:36:54 +02:00
pidfd_getfd_test.c selftests: Remove unneeded selftest API headers 2020-07-06 15:59:07 -06:00
pidfd_open_test.c tests: move common definitions and functions into pidfd.h 2019-08-06 19:39:45 +02:00
pidfd_poll_test.c tests: add pidfd poll tests 2019-08-06 19:52:41 +02:00
pidfd_setns_test.c linux-kselftest-5.9-rc1 2020-08-05 10:28:25 -07:00
pidfd_test.c selftests: pidfd: skip test if unshare fails with EPERM 2020-07-07 13:28:58 -06:00
pidfd_wait.c tests: add waitid() tests for non-blocking pidfds 2020-09-04 13:48:57 +02:00
pidfd.h tests: add waitid() tests for non-blocking pidfds 2020-09-04 13:48:57 +02:00