The "END" message is now produced upon normal exit, without requiring that
the totals() function or method be called. The C++ API now emits totals
only when the last TestState object in the program is destroyed, instead
of every time a TestState object is destroyed. This required adding code
to track the number of live TestState objects.
(_BUFFER_SIZE_): Remove to minimise namespace pollution.
(wait): Define this function unconditionally. Conditionally
compile the function body if _DEJAGNU_WAIT_ is defined.
(buffer): Set the buffer size explicitly.
(pass): Use sizeof (buffer). Call wait() unconditionally.
(fail, untested, unresolved, note): Likewise.
(enum teststate): Tidy whitespace.
* dejagnu.h: modfied C functions to behave like printf.
* dejagnu.h: added wait() to fix problem with host_execute() in
dejagnu.exp where if skips failed, untested, etc. messages from the
executable.
AC_LANG_CPLUSPLUS so we build this test case with G++.
* aclocal.m4, configure: Regenerated.
* dejagnu.h: Don't use testout(), have each method print the array
value directly, which is much simpler.
* acinclude.m4(DJ_AC_STL): s/for for/for/.
* dejagnu.h: Add conditional support for sstream.
(testout): Likewise. Make return type `const'.
libstdc++ version 2 or 3.
* aclocal.m4: Regenerated.
* configure.in: Add DJ_AC_STL.
* configure: Regenerated.
* dejagnu.h: Add the use of the std namespace, so we work with
libstdc++ version 2 or 3.
* testsuite/libdejagnu/unit.cc: Use setbuf() or pubsetbuff(),
depending on the version.
* 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.