aboutsummaryrefslogtreecommitdiff
path: root/gdb/xml-support.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-11-03 11:51:37 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-11-03 14:25:59 -0400
commitdbbfabb441556497f3ee9d89cf74bdc4a7a4c83c (patch)
tree18ff359d16234e6823b471bfd6950f3943767f19 /gdb/xml-support.h
parent88bfe6ac8bcbaf1eb0c1e4be02c21a5c048b7335 (diff)
downloadgdb-dbbfabb441556497f3ee9d89cf74bdc4a7a4c83c.zip
gdb-dbbfabb441556497f3ee9d89cf74bdc4a7a4c83c.tar.gz
gdb-dbbfabb441556497f3ee9d89cf74bdc4a7a4c83c.tar.bz2
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>
Diffstat (limited to 'gdb/xml-support.h')
0 files changed, 0 insertions, 0 deletions