Open chleroy opened 2 years ago
I'm fine adding an XFAIL
when CONFIG_UBSAN_TRAP
is missing, but I think this should continue to fail if it doesn't BUG
.
I'm fine adding an
XFAIL
whenCONFIG_UBSAN_TRAP
is missing, but I think this should continue to fail if it doesn'tBUG
.
Ok, that would mean adding something equivalent to kunit_fail_current_test() inside function ubsan_prologue() ?
I think all that's needed is for the test is something like:
if (IS_ENABLED(CONFIG_UBSAN_TRAP))
unexpected ...
else
XFAIL...
This kernel is built without
CONFIG_UBSAN_TRAP
, so the survival is expected.When
CONFIG_UBSAN_TRAP
is selected, it doesn't survive: