Module Name: src
Committed By: pooka
Date: Fri Jun 18 16:13:56 UTC 2010
Modified Files:
src/external/bsd/atf/dist/atf-report: atf-report.cpp
Log Message:
Handle xfail in a few more places. Found by, la la la, the new tests.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/atf/dist/atf-report/atf-report.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/atf/dist/atf-report/atf-report.cpp
diff -u src/external/bsd/atf/dist/atf-report/atf-report.cpp:1.2 src/external/bsd/atf/dist/atf-report/atf-report.cpp:1.3
--- src/external/bsd/atf/dist/atf-report/atf-report.cpp:1.2 Wed Jun 16 15:17:37 2010
+++ src/external/bsd/atf/dist/atf-report/atf-report.cpp Fri Jun 18 16:13:56 2010
@@ -154,6 +154,9 @@
} else if (tcr.get_state() == atf::tests::tcr::skipped_state) {
str += m_tpname + ", " + m_tcname + ", skipped, " +
tcr.get_reason();
+ } else if (tcr.get_state() == atf::tests::tcr::xfail_state) {
+ str += m_tpname + ", " + m_tcname + ", xfail, " +
+ tcr.get_reason();
} else
UNREACHABLE;
(*m_os) << str << std::endl;
@@ -425,6 +428,9 @@
} else if (s == atf::tests::tcr::skipped_state) {
(*m_os) << "<skipped>" << elemval(tcr.get_reason())
<< "</skipped>" << std::endl;
+ } else if (s == atf::tests::tcr::xfail_state) {
+ (*m_os) << "<xfail>" << elemval(tcr.get_reason())
+ << "</xfail>" << std::endl;
} else
UNREACHABLE;
(*m_os) << "</tc>" << std::endl;