mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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: 33d5b13098 ("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>
This commit is contained in:
parent
d25f15a76c
commit
d05de2360a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user