public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: Improve detection of bug gdb/24541
@ 2019-06-16 15:28 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2019-06-16 15:28 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=93cb9841d68263174a600dc70af742a8e2eabfc6
commit 93cb9841d68263174a600dc70af742a8e2eabfc6
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date: Sun Jun 16 16:17:59 2019 +0100
gdb/testsuite: Improve detection of bug gdb/24541
In bug gdb/24686 a testsuite failure was reported, this failure was
actually just another instance of bug gdb/24541, however, due to the
non-deterministic nature of bug gdb/24541 the testsuite pattern that
was intended to catch this bug failed.
This commit adds a second pattern to help detect gdb/24541, which
should change the FAIL reported in gdb/24686 into a KFAIL.
gdb/testsuite/ChangeLog:
PR gdb/24686
* gdb.mi/mi-catch-cpp-exceptions.exp: Add an extra pattern to
improve detection of bug gdb/24541.
Diff:
---
gdb/testsuite/ChangeLog | 6 ++++++
gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp | 3 +++
2 files changed, 9 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e486dff..5438657 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ PR gdb/24686
+ * gdb.mi/mi-catch-cpp-exceptions.exp: Add an extra pattern to
+ improve detection of bug gdb/24541.
+
2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
PR gdb/24669
diff --git a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
index b5dfbe6..fa5b11e 100644
--- a/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
+++ b/gdb/testsuite/gdb.mi/mi-catch-cpp-exceptions.exp
@@ -141,6 +141,9 @@ with_test_prefix "all with invalid regexp" {
-re "could not find minimal symbol for typeinfo address.*$mi_gdb_prompt$" {
kfail "gdb/24541" "${testname}"
}
+ -re "\\*stopped,bkptno=\"$decimal\",reason=\"breakpoint-hit\",disp=\"keep\".*func=\"__cxa_throw\".*$mi_gdb_prompt$" {
+ kfail "gdb/24541" "${testname}"
+ }
-re "\\*stopped,reason=\"breakpoint-hit\".*func=\"main\".*line=\"${main_lineno}\".*$mi_gdb_prompt$" {
pass "${testname}"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-16 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-16 15:28 [binutils-gdb] gdb/testsuite: Improve detection of bug gdb/24541 Andrew Burgess
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).