On Sat, Aug 16, 2025 at 09:31:13AM +0530, Aboorva Devarajan wrote: >Gracefully skip test if userfaultfd is not supported (ENOSYS) or not >permitted (EPERM), instead of failing. This avoids misleading failures >with clear skip messages. > >-------------- >Before Patch >-------------- >~ running ./hugepage-mremap >... >~ Bail out! userfaultfd: Function not implemented >~ Planned tests != run tests (1 != 0) >~ Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:0 >~ [FAIL] >not ok 4 hugepage-mremap # exit=1 > >-------------- >After Patch >-------------- >~ running ./hugepage-mremap >... >~ ok 2 # SKIP userfaultfd is not supported/not enabled. >~ 1 skipped test(s) detected. >~ Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 >~ [SKIP] >ok 4 hugepage-mremap # SKIP > >Co-developed-by: Donet Tom <[email protected]> >Signed-off-by: Donet Tom <[email protected]> >Acked-by: David Hildenbrand <[email protected]> >Reviewed-by: Zi Yan <[email protected]> >Signed-off-by: Aboorva Devarajan <[email protected]>
Reviewed-by: Wei Yang <[email protected]> -- Wei Yang Help you, Help me

