diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-25 15:55:02 -0500 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-09-30 16:58:54 -0700 |
| commit | 740af061c13b33a4bd23d667a3194a03869473bc (patch) | |
| tree | f0c56ef06b5d5611db623b7d47c1bad1d7139b82 /tools/testing | |
| parent | d54577a85c025ee2de8920540293c02bafcf3707 (diff) | |
| download | linux-next-740af061c13b33a4bd23d667a3194a03869473bc.tar.gz linux-next-740af061c13b33a4bd23d667a3194a03869473bc.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>
Diffstat (limited to 'tools/testing')
| -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); |
