From: Tobias Klauser Date: Wed, 8 Mar 2023 10:53:20 +0000 (+0100) Subject: selftests/clone3: test clone3 with CLONE_NEWTIME X-Git-Tag: v6.6.17~5319^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=515bddf0ec4155cbd666d72daf5bd68c8b7cd987;p=platform%2Fkernel%2Flinux-rpi.git selftests/clone3: test clone3 with CLONE_NEWTIME Verify that clone3 can be called successfully with CLONE_NEWTIME in flags. Cc: Andrey Vagin Cc: Christian Brauner Cc: Shuah Khan Signed-off-by: Tobias Klauser Signed-off-by: Christian Brauner (Microsoft) --- diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index cd45821..4fce46af 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -195,5 +195,8 @@ int main(int argc, char *argv[]) test_clone3(CLONE_NEWPID, getpagesize() + 8, -E2BIG, CLONE3_ARGS_NO_TEST); + /* Do a clone3() in a new time namespace */ + test_clone3(CLONE_NEWTIME, 0, 0, CLONE3_ARGS_NO_TEST); + return !ksft_get_fail_cnt() ? ksft_exit_pass() : ksft_exit_fail(); }