[PATCH v5 4/4] iommu/io-pgtable-arm-selftests: Use KUnit
Jason Gunthorpe
jgg at ziepe.ca
Fri Oct 17 07:13:12 PDT 2025
On Fri, Oct 17, 2025 at 01:04:49PM +0000, Mostafa Saleh wrote:
> Is simple enough and verbose and can distinguished from test failures,
> it will look like:
> [ 2.095812] ok 1 arm_lpae_do_selftests # SKIP Failed to allocated device!
^^^^^
The test "passed" though, and since we never expect this failure it
seems wrong to make it pass.
I think there is no point in distinguishing "infrastructure" from
anything else. Either the test runs to completion and does everything,
or it fails.
The use of skip is for things where we probe something and detect we
can't run the test. Like maybe you have a test that relies on
PAGE_SIZE=4096, or CONFIG_XX so skip other systems.
While, "I hit an OOM so I skip the test" seems wrong to me. Maybe the
OOM was caused by the "unit under test" leaking memory??
Jason
More information about the linux-arm-kernel
mailing list