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:
pooka 2010-06-27 20:36:42 +00:00
parent a21d11f6f4
commit 31d66e80e4
1 changed files with 4 additions and 1 deletions

View File

@ -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()) {