Skip to content

Commit 5fc4b77

Browse files
broonieakpm00
authored andcommitted
selftests/mm: deduplicate second mmap() of 5*PAGE_SIZE at base
The map_fixed_noreplace test does two blocks of test starting from a mapping of 5 pages at the base address, logging a test result for each initial mapping. These are logged with the same test name, causing test automation software to see two reports for the same test in a single run. Tweak the log message for the second one to deduplicate. Link: https://lkml.kernel.org/r/20250518-selftests-mm-map-fixed-noreplace-dup-v1-1-1a11a62c5e9f@kernel.org Signed-off-by: Mark Brown <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 6669d1a commit 5fc4b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/mm/map_fixed_noreplace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int main(void)
9696
ksft_exit_fail_msg("Error:1: mmap() succeeded when it shouldn't have\n");
9797
}
9898
ksft_print_msg("mmap() @ 0x%lx-0x%lx p=%p result=%m\n", addr, addr + size, p);
99-
ksft_test_result_pass("mmap() 5*PAGE_SIZE at base\n");
99+
ksft_test_result_pass("Second mmap() 5*PAGE_SIZE at base\n");
100100

101101
/*
102102
* Second mapping contained within first:

0 commit comments

Comments
 (0)