From: Pedro Alves <pedro@palves.net>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/2] Include count of unexpected core files in gdb.sum summary
Date: Thu, 23 Jun 2022 19:30:51 +0100 [thread overview]
Message-ID: <20220623183053.172430-1-pedro@palves.net> (raw)
It can happen that GDB, GDBserver, etc. even crashes _after_ gdb_exit,
during teardown, and thus such a crash won't be noticed by looking at
the gdb.sum file at all. This series aims at improving that, by
including a new "unexpected core files" line in the gdb.sum summary.
For example, here's what I get on x86-64 Ubuntu 20.04, with this
series:
=== gdb Summary ===
# of unexpected core files 12 << new info
# of expected passes 107557
# of unexpected failures 35
# of expected failures 77
# of unknown successes 2
# of known failures 114
# of untested testcases 31
# of unsupported tests 139
That is done by patch #2.
Patch #1 fixes some testcases to make sure they dump their cores under
their output dir instead of in build/gdb/testsuite/, as those cores
are not unexpected cores, and makes the testcases be able to find
their kernel-generated cores when the core file names aren't exactly
"gdb" or "gdb.PID".
Pedro Alves (2):
Improve core file path detection & put cores in output dir
Include count of unexpected core files in gdb.sum summary
gdb/testsuite/Makefile.in | 9 ++-
gdb/testsuite/gdb.base/annota1.exp | 18 ++---
gdb/testsuite/gdb.base/annota3.exp | 18 ++---
gdb/testsuite/gdb.base/bigcore.exp | 38 ++-------
gdb/testsuite/gdb.base/exitsignal.exp | 11 ++-
gdb/testsuite/lib/dg-add-core-file-count.sh | 40 ++++++++++
gdb/testsuite/lib/gdb.exp | 86 ++++++++++++++++++++-
7 files changed, 165 insertions(+), 55 deletions(-)
create mode 100755 gdb/testsuite/lib/dg-add-core-file-count.sh
base-commit: c86acd3f180419c3d9825170492363fe2322fa8d
--
2.36.0
next reply other threads:[~2022-06-23 18:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 18:30 Pedro Alves [this message]
2022-06-23 18:30 ` [PATCH 1/2] Improve core file path detection & put cores in output dir Pedro Alves
2022-06-24 9:50 ` Andrew Burgess
2022-06-24 10:59 ` Pedro Alves
2022-06-23 18:30 ` [PATCH 2/2] Include count of unexpected core files in gdb.sum summary Pedro Alves
2022-06-23 19:12 ` Pedro Alves
2022-06-23 22:09 ` John Baldwin
2022-06-24 11:13 ` Pedro Alves
2022-06-24 11:17 ` Pedro Alves
2022-06-24 10:07 ` Andrew Burgess
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220623183053.172430-1-pedro@palves.net \
--to=pedro@palves.net \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).