diff options
Diffstat (limited to 'dejagnu.h')
-rw-r--r-- | dejagnu.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -16,9 +16,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* This is the include generated by configuring */ -#include <config.h> - #ifndef __DEJAGNU_H__ #define __DEJAGNU_H__ @@ -188,6 +185,7 @@ class TestState { string s = c; unresolved (s); } + void totals (void) { cout << "\t#passed:\t\t" << passed << endl; cout << "\t#failed:\t\t" << failed << endl; @@ -197,6 +195,7 @@ class TestState { cout << "\t#unresolved:\t\t" << unresolve << endl; } + // This is so thjis class can be printed in an ostream. friend ostream & operator << (ostream &os, TestState& t) { return os << "\t" << outstate[t.laststate] << t.lastmsg ; } |