Skip to content

Commit 9abb8c2

Browse files
broonieakpm00
authored andcommitted
selftests/mm: deduplicate default page size test results in thuge-gen
The thuge-gen test program runs mmap() and shmget() tests for both every available page size and the default page size, resulting in two tests for the default size. These tests are distinct since the flags in the default case do not specify an explicit size, add the flags to the test name that is logged to deduplicate. Link: https://lkml.kernel.org/r/20250515-selfests-mm-thuge-gen-dup-v1-1-057d2836553f@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Dev Jain <dev.jain@arm.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 62973e3 commit 9abb8c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/mm/thuge-gen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void test_mmap(unsigned long size, unsigned flags)
127127

128128
show(size);
129129
ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES,
130-
"%s mmap %lu\n", __func__, size);
130+
"%s mmap %lu %x\n", __func__, size, flags);
131131

132132
if (munmap(map, size * NUM_PAGES))
133133
ksft_exit_fail_msg("%s: unmap %s\n", __func__, strerror(errno));
@@ -165,7 +165,7 @@ void test_shmget(unsigned long size, unsigned flags)
165165

166166
show(size);
167167
ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES,
168-
"%s: mmap %lu\n", __func__, size);
168+
"%s: mmap %lu %x\n", __func__, size, flags);
169169
if (shmdt(map))
170170
ksft_exit_fail_msg("%s: shmdt: %s\n", __func__, strerror(errno));
171171
}

0 commit comments

Comments
 (0)