From ebcfc9471dffd3d020d0a62eb049d56e0fff7905 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Tue, 29 Nov 2022 22:26:32 -0600 Subject: [PATCH] Align C++ TestState::totals() with C totals() --- ChangeLog | 2 ++ dejagnu.h | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6299ea7..e7d20b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2022-11-29 Jacob Bachmeyer + * dejagnu.h (TestState::totals): Emit header line, like the C version. + * dejagnu.h (TestState::note): New method, like C note(). * doc/dejagnu.texi (C++ unit testing API): Add note() method. diff --git a/dejagnu.h b/dejagnu.h index 49923b2..cdb6c61 100644 --- a/dejagnu.h +++ b/dejagnu.h @@ -262,6 +262,7 @@ class TestState { void totals (void) { + std::cout << std::endl << "Totals:" << std::endl; std::cout << "\t#passed:\t\t" << passed << std::endl; std::cout << "\t#real failed:\t\t" << failed << std::endl; if (xfailed)