selftests: add tests for clone3()
authorAdrian Reber <areber@redhat.com>
Tue, 12 Nov 2019 09:58:51 +0000 (10:58 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 12 Nov 2019 11:11:57 +0000 (12:11 +0100)
commit17a810699c189cb8f2f0ba21c7f83396599bea26
tree0640e370eefc11c79abd5c06e25b47428b6263c2
parentde5287235631cc561716d85f984614ef9598a5cc
selftests: add tests for clone3()

This adds tests for clone3() with different values and sizes
of struct clone_args.

This selftest was initially part of of the clone3() with PID selftest.
After that patch was almost merged Eugene sent out a couple of patches
to fix problems with these test.

This commit now only contains the clone3() selftest after the LPC
decision to rework clone3() with PID to allow setting the PID in
multiple PID namespaces including all of Eugene's patches.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191112095851.811884-1-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 [new file with mode: 0644]