From d807904c119232226a7f644b6a5ebdbb1ed2a67d Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Tue, 20 Dec 2022 22:27:28 -0600 Subject: Add support for reporting errors and warnings in dejagnu.h --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9d94bda..5dcc40e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2022-12-20 Jacob Bachmeyer + * dejagnu.h (DG_error, DG_warning): New functions. + (TestState::error, TestState::warning): New methods. + * doc/dejagnu.texi (C unit testing API): Document new functions. + (C++ unit testing API): Document new methods and fix an error: + TestState::unsupported does not take varargs. + * testsuite/libdejagnu/unit-c.c (main): Add support for testing + errors and warnings. + * testsuite/libdejagnu/unit-cxx.cxx (main): Likewise. + * testsuite/libdejagnu/unit-ccxxmix.cxx (main): Likewise. + * testsuite/libdejagnu/harness.exp: Add tests. + (test_libdejagnu_unit): Add support for ERROR and WARNING tokens. + * doc/dejagnu.texi (DejaGnu unit test protocol): Add ERROR and WARNING tokens to DejaGnu unit testing protocol. * lib/dejagnu.exp (host_execute): Implement same. -- cgit v1.1