]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/fchmodat2: use ksft_finished()
authorMark Brown <broonie@kernel.org>
Thu, 26 Feb 2026 22:24:43 +0000 (22:24 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 28 Mar 2026 04:19:37 +0000 (21:19 -0700)
The fchmodat2 test program open codes a version of ksft_finished(), use
the standard version.

Link: https://lkml.kernel.org/r/20260226-selftests-fchmodat2-v4-2-a6419435f2e8@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Alexey Gladkov <legion@kernel.org>
Cc: Christian Brauner <brauner@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/fchmodat2/fchmodat2_test.c

index e03430c4675cd978b81e1928604dae3f07acecff..8e1b6384b319e9473bb0caf95359e3c6e9564b3b 100644 (file)
@@ -196,8 +196,5 @@ int main(int argc, char **argv)
        test_regfile();
        test_symlink();
 
-       if (ksft_get_fail_cnt() + ksft_get_error_cnt() > 0)
-               ksft_exit_fail();
-       else
-               ksft_exit_pass();
+       ksft_finished();
 }