diff options
author | Muhammad Usama Anjum <[email protected]> | 2024-11-01 19:15:57 +0500 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-07 14:14:59 -0800 |
commit | 0268d4579901821ff17259213c2d8c9679995d48 (patch) | |
tree | 4064df8b5ccca20b44602588a9bc37599bfbbc46 /Documentation/filesystems/caching/backend-api.rst | |
parent | 652e1a51465f2e8e75590bc3dd1e3a3b61020568 (diff) |
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 'Documentation/filesystems/caching/backend-api.rst')
0 files changed, 0 insertions, 0 deletions