diff options
| author | Muhammad Usama Anjum <[email protected]> | 2024-11-01 14:15:57 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-07 22:14:59 +0000 |
| commit | 0268d4579901821ff17259213c2d8c9679995d48 (patch) | |
| tree | 4064df8b5ccca20b44602588a9bc37599bfbbc46 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | mm: fix docs for the kernel parameter ``thp_anon=`` (diff) | |
| download | kernel-0268d4579901821ff17259213c2d8c9679995d48.tar.gz kernel-0268d4579901821ff17259213c2d8c9679995d48.zip | |
selftests: hugetlb_dio: check for initial conditions to skip in the start
The test should be skipped if initial conditions aren't fulfilled in the
start instead of failing and outputting non-compliant TAP logs. This kind
of failure pollutes the results. The initial conditions are:
- The test should only execute if /tmp file can be allocated.
- The test should only execute if huge pages are free.
Before:
TAP version 13
1..4
Bail out! Error opening file
: Read-only file system (30)
# Planned tests != run tests (4 != 0)
# Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:0
After:
TAP version 13
1..0 # SKIP Unable to allocate file: Read-only file system
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Muhammad Usama Anjum <[email protected]>
Fixes: 3a103b5315b7 ("selftest: mm: Test if hugepage does not get leaked during __bio_release_pages()")
Cc: Muhammad Usama Anjum <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Donet Tom <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
