From ee37e3e22012ecee8b3d1d243378ce19a03689e3 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Sun, 6 May 2001 16:22:20 +0000 Subject: * debian/rules: Install all the doc formats. * redhat/dejagnu.spec: Install all the doc formats. * Clean.tcl: Also nuke all Emacs backup files. * Makefile.am: Fix dependencies on tarball target. Add new target to build Debian packages. Add $(includedir) to install-data-local target so dejagnu.h gets installed in the right place. * doc/Makefile.am: Make all paths absolute, cause some versions of the db2* tools are braindead. * doc/overview.sgml: Update version numbers and log. * doc/user.sgml: Add mention of dejagnu.h header file. * doc/ref.sgml: Add chapter on dejagnu.h header file for unit testing. * config/default.exp: New file for default config settings for simple native testsuites that don't need anything else. * lib/dejagnu.exp: Add $text\r\n to all strings, to make sure we only get one line at a time. * testsuite/libdejagnu: New directory for dejagnu library test cases. * testsuite/libdejagnu/unit.cc: Test case for dejagnu.h. * testsuite/libdejagnu/tunit.exp: Test driver for dejagnu.h. * testsuite/libdejagnu/Makefile.am: New makefile to build the test case. * testsuite/libdejagnu/Makefile.in: Generated. * testsuite/Makefile.am: Add libdejagnu to SUBDIRS. Replace the site.exp rule, cause we don't want the $tool setting, so we run all the test suites. Don't pass the tool name for "make check". * configure.in: Add testsuite/libdejagnu/Makefile to AC_OUTPUT. --- dejagnu.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dejagnu.h') diff --git a/dejagnu.h b/dejagnu.h index 214d3ff..7d6c7f7 100644 --- a/dejagnu.h +++ b/dejagnu.h @@ -16,9 +16,6 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* This is the include generated by configuring */ -#include - #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 ; } -- cgit v1.1