Browse Source

Align C++ TestState::totals() with C totals()

master
Jacob Bachmeyer 3 years ago
parent
commit
ebcfc9471d
  1. 2
      ChangeLog
  2. 1
      dejagnu.h

2
ChangeLog

@ -1,5 +1,7 @@
2022-11-29 Jacob Bachmeyer <jcb@gnu.org>
* 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.

1
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)

Loading…
Cancel
Save