diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dejagnu.h | 4 | ||||
-rw-r--r-- | testsuite/libdejagnu/harness.exp | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -1,5 +1,10 @@ 2022-12-20 Jacob Bachmeyer <jcb@gnu.org> + * dejagnu.h (totals, TestState::totals): Change "real failed" to + "failed" when listing number of failed tests. + * testsuite/libdejagnu/harness.exp (test_libdejagnu_unit): Update + to match above change. + * dejagnu.h (DG_error, DG_warning): New functions. (TestState::error, TestState::warning): New methods. * doc/dejagnu.texi (C unit testing API): Document new functions. @@ -209,7 +209,7 @@ totals (void) { printf ("\nTotals:\n"); printf ("\t#passed:\t\t%d\n", DG__status.pass); - printf ("\t#real failed:\t\t%d\n", DG__status.fail); + printf ("\t#failed:\t\t%d\n", DG__status.fail); if (DG__status.xfail) printf ("\t#expected failures:\t\t%d\n", DG__status.xfail); if (DG__status.xpass) @@ -360,7 +360,7 @@ class TestState { std::cout << "\t#passed:\t\t" << DG__status.pass << std::endl; - std::cout << "\t#real failed:\t\t" + std::cout << "\t#failed:\t\t" << DG__status.fail << std::endl; if (DG__status.xfail) diff --git a/testsuite/libdejagnu/harness.exp b/testsuite/libdejagnu/harness.exp index c3ec3f5..44f43af 100644 --- a/testsuite/libdejagnu/harness.exp +++ b/testsuite/libdejagnu/harness.exp @@ -32,7 +32,7 @@ proc test_libdejagnu_unit { language tests } { # map messages from dejagnu.h:totals() to result types array set expected_totals_map { - passed pass "real failed" fail + passed pass failed fail "unexpected passes" xpass "expected failures" xfail untested untested |