Simon Marchi dbbfabb441 gdbsupport: record and print failed selftest names
Since "maint selftest" now runs quite a lot of tests (especially in an
all-targets build), I thought it would be useful to print a summary at
the end of what failed.  So, implement that.

Print the summary before the "Ran %d unit tests, %zu failed\n" line, so
that that one remains the last line, and the gdb.gdb/unittest.exp
doesn't need to be changed.

The output looks like (if I force a failure in a test):

    (gdb) maint selftest
    ...
    Running selftest value_copy.
    Running selftest xml_escape_text.
    Running selftest xml_escape_text_append.

    Failures:
      aarch64-analyze-prologue

    Ran 4134 unit tests, 1 failed
    (gdb)

Change-Id: If3aaabdd6f8078d0e6e50e8d08f3e558ab85277e
Approved-By: Tom Tromey <tom@tromey.com>
2023-11-03 14:25:59 -04:00
..
2023-06-05 12:53:15 +02:00
2023-09-11 06:15:52 +00:00
2023-06-03 22:43:57 +02:00
2023-10-12 18:23:13 -06:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-02-24 11:53:03 -07:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-09-15 10:36:15 -06:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.