If get_tcr() is called with broken_reason set, apply xfail inversion.
This (at least) makes timeouting tests honor xfail.
This commit is contained in:
parent
a21d11f6f4
commit
31d66e80e4
|
@ -222,7 +222,10 @@ atf_run::get_tcr(const std::string& broken_reason,
|
|||
const bool default_fail = !config_xfail.empty();
|
||||
|
||||
if (!broken_reason.empty()) {
|
||||
return tcr(tcr::failed_state, broken_reason);
|
||||
if (default_fail)
|
||||
return tcr(tcr::xfail_state, config_xfail);
|
||||
else
|
||||
return tcr(tcr::failed_state, broken_reason);
|
||||
}
|
||||
|
||||
if (s.exited()) {
|
||||
|
|
Loading…
Reference in New Issue