[lit] Lift XFAIL handling to core infrastructure.