aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2023-04-24 12:48:33 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2023-04-24 12:48:33 -0700
commita632b76b427d886911221331f4bfcd44a3e58197 (patch)
tree1ba609b61a8b55ffd70818290c64decd43b320f1 /tools
parentMerge tag 'docs-6.4' of git://git.lwn.net/linux (diff)
parentselftests/clone3: fix number of tests in ksft_set_plan (diff)
downloadlinux-a632b76b427d886911221331f4bfcd44a3e58197.tar.gz
linux-a632b76b427d886911221331f4bfcd44a3e58197.tar.bz2
linux-a632b76b427d886911221331f4bfcd44a3e58197.zip
Merge tag 'v6.4/kernel.clone3.tests' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux
Pull clone3 selftest fix from Christian Brauner: "This is a single fix to the clone3() selftstests. It fell through the sefltest tree cracks a few times so I'll provide it here. It has low urgency but we should still correctly report the number of tests" * tag 'v6.4/kernel.clone3.tests' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux: selftests/clone3: fix number of tests in ksft_set_plan
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/clone3/clone3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c
index 4fce46afe6db..e495f895a2cd 100644
--- a/tools/testing/selftests/clone3/clone3.c
+++ b/tools/testing/selftests/clone3/clone3.c
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
uid_t uid = getuid();
ksft_print_header();
- ksft_set_plan(17);
+ ksft_set_plan(18);
test_clone3_supported();
/* Just a simple clone3() should return 0.*/
@@ -198,5 +198,5 @@ int main(int argc, char *argv[])
/* 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();
+ ksft_finished();
}