selftests/clone3: fix number of tests in ksft_set_plan
authorTobias Klauser <tklauser@distanz.ch>
Tue, 14 Mar 2023 12:34:14 +0000 (13:34 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Apr 2023 09:57:28 +0000 (11:57 +0200)
commitd95debbdc528d50042807754d6085c15abc21768
tree7343d43edab2cc1a150b0cf9558cf9efa42849dd
parent197b6b60ae7bc51dd0814953c562833143b292aa
selftests/clone3: fix number of tests in ksft_set_plan

Commit 515bddf0ec41 ("selftests/clone3: test clone3 with CLONE_NEWTIME")
added an additional test, so the number passed to ksft_set_plan needs to
be bumped accordingly.

Also use ksft_finished() to print results and exit. This will catch future
mismatches between ksft_set_plan() and the number of tests being run.

Fixes: 515bddf0ec41 ("selftests/clone3: test clone3 with CLONE_NEWTIME")
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/clone3/clone3.c