diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-25 15:55:02 -0500 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-08 23:06:50 -0700 |
| commit | 443614b796aa7dddafa6492efbbf7b17612e152d (patch) | |
| tree | 1a3861b2fb371a3c07935c67e2e2bc4979a71b88 | |
| parent | 57b4c286f02b2275a03b198e9f2d941e9a68a4fe (diff) | |
| download | linux-next-443614b796aa7dddafa6492efbbf7b17612e152d.tar.gz linux-next-443614b796aa7dddafa6492efbbf7b17612e152d.zip | |
kselftest/filelock: plan for the five ofdlocks tests
ofdlocks reports five results but plans for four, so even when they
all pass it ends with
# Planned tests != run tests (4 != 5)
and exits with KSFT_FAIL, which run_kselftest.sh reports as a failure.
Link: https://lore.kernel.org/20260925205502.115327-1-danishkhateeb03@gmail.com
Fixes: 33d5b13098fb ("kselftest/filelock: report each test in oftlocks separately")
Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Assisted-by: LLM
Cc: Shuah Khan <shuah@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jeff Layton <jlayton@kernel.org>
| -rw-r--r-- | tools/testing/selftests/filelock/ofdlocks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/filelock/ofdlocks.c b/tools/testing/selftests/filelock/ofdlocks.c index 68bac28b234b..0ab484cb075b 100644 --- a/tools/testing/selftests/filelock/ofdlocks.c +++ b/tools/testing/selftests/filelock/ofdlocks.c @@ -40,7 +40,7 @@ int main(void) int fd2 = open("/tmp/aa", O_RDONLY); ksft_print_header(); - ksft_set_plan(4); + ksft_set_plan(5); unlink("/tmp/aa"); assert(fd != -1); |
