selftests: add tests for clone3() with *set_tid
authorAdrian Reber <areber@redhat.com>
Fri, 15 Nov 2019 12:36:21 +0000 (13:36 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Nov 2019 22:49:51 +0000 (23:49 +0100)
commit41585bbeeef9402d5d65687747e04246ef4a3a41
treef77af763bae9cc64a23680b1f43321e88f9717e7
parent49cb2fc42ce4b7a656ee605e30c302efaa39c1a7
selftests: add tests for clone3() with *set_tid

This tests clone3() with *set_tid to see if all desired PIDs are working
as expected. The tests are trying multiple invalid input parameters as
well as creating processes while specifying a certain PID in multiple
PID namespaces at the same time.

Additionally this moves common clone3() test code into clone3_selftests.h.

Signed-off-by: Adrian Reber <areber@redhat.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191115123621.142252-2-areber@redhat.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/clone3/.gitignore
tools/testing/selftests/clone3/Makefile
tools/testing/selftests/clone3/clone3.c
tools/testing/selftests/clone3/clone3_clear_sighand.c
tools/testing/selftests/clone3/clone3_selftests.h [new file with mode: 0644]
tools/testing/selftests/clone3/clone3_set_tid.c [new file with mode: 0644]