lib/test_vmalloc.c: introduce xfail for failing tests
authorRaghavendra K T <raghavendra.kt@amd.com>
Wed, 2 Jul 2025 06:43:19 +0000 (06:43 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:32 +0000 (16:38 -0700)
commitee58e38489772f356c1ac79e0724183497e43249
tree892d155d1be4f95d9e754d35aa87723a756417ab
parent9640b17a89a86f40df47bfc831a8afeff0c7eabc
lib/test_vmalloc.c: introduce xfail for failing tests

The test align_shift_alloc_test is expected to fail.  Reporting the test
as fail confuses to be a genuine failure.  Introduce widely used xfail
sematics to address the issue.

Note: a warn_alloc dump similar to below is still expected:

 Call Trace:
  <TASK>
  dump_stack_lvl+0x64/0x80
  warn_alloc+0x137/0x1b0
  ? __get_vm_area_node+0x134/0x140

Snippet of dmesg after change:

Summary: random_size_align_alloc_test passed: 1 failed: 0 xfailed: 0 ..
Summary: align_shift_alloc_test passed: 0 failed: 0 xfailed: 1 ..
Summary: pcpu_alloc_test passed: 1 failed: 0 xfailed: 0 ..

Link: https://lkml.kernel.org/r/20250702064319.885-1-raghavendra.kt@amd.com
Signed-off-by: Raghavendra K T <raghavendra.kt@amd.com>
Reviewed-by: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Cc: Dev Jain <dev.jain@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_vmalloc.c