Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/dist/atf-run If get_tcr() is called with br...



details:   https://anonhg.NetBSD.org/src/rev/586d798e1ac8
branches:  trunk
changeset: 755907:586d798e1ac8
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jun 27 20:36:42 2010 +0000

description:
If get_tcr() is called with broken_reason set, apply xfail inversion.
This (at least) makes timeouting tests honor xfail.

diffstat:

 external/bsd/atf/dist/atf-run/atf-run.cpp |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r cd475c89ee13 -r 586d798e1ac8 external/bsd/atf/dist/atf-run/atf-run.cpp
--- a/external/bsd/atf/dist/atf-run/atf-run.cpp Sun Jun 27 13:44:26 2010 +0000
+++ b/external/bsd/atf/dist/atf-run/atf-run.cpp Sun Jun 27 20:36:42 2010 +0000
@@ -222,7 +222,10 @@
     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()) {



Home | Main Index | Thread Index | Old Index