selftests/clone3: skip if clone3() is ENOSYS

If the clone3() syscall is not implemented we should skip the tests.

Fixes: 41585bbeee ("selftests: add tests for clone3() with *set_tid")
Fixes: 17a810699c ("selftests: add tests for clone3()")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner
2019-11-18 08:49:44 +01:00
parent a019ff3b8b
commit 11fde161ab
4 changed files with 33 additions and 30 deletions

View File

@@ -131,6 +131,7 @@ int main(int argc, char *argv[])
uid_t uid = getuid();
test_clone3_supported();
ksft_print_header();
ksft_set_plan(17);