From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed] [gdb/testsuite] Minor cleanup in gdb.base/bg-execution-repeat.exp
Date: Wed, 26 Jun 2024 09:05:22 +0200 [thread overview]
Message-ID: <20240626070522.13389-1-tdevries@suse.de> (raw)
Simplify a gdb_test_multiple in test-case gdb.base/bg-execution-repeat.exp
using "gdb_test -no-prompt-anchor".
Suggested-By: Guinevere Larsen <blarsen@redhat.com>
Tested on x86_64-linux.
---
gdb/testsuite/gdb.base/bg-execution-repeat.exp | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/gdb/testsuite/gdb.base/bg-execution-repeat.exp b/gdb/testsuite/gdb.base/bg-execution-repeat.exp
index 35ddb34cd8f..61f26f30f46 100644
--- a/gdb/testsuite/gdb.base/bg-execution-repeat.exp
+++ b/gdb/testsuite/gdb.base/bg-execution-repeat.exp
@@ -41,14 +41,9 @@ proc test {continue_cmd} {
gdb_breakpoint "$linenum"
- set test $continue_cmd
- gdb_test_multiple $test $test {
- -re "Continuing\\.\r\n$gdb_prompt " {
- # Note no end anchor. If the breakpoint triggers soon enough
- # enough we see further output after the prompt.
- pass $test
- }
- }
+ # If the breakpoint triggers soon enough we see further output after the
+ # prompt, so no prompt anchor.
+ gdb_test -no-prompt-anchor $continue_cmd [string_to_regexp "Continuing."]
# Wait for the stop. Don't expect a prompt, as we had resumed the
# inferior in the background.
base-commit: c44008bda2fdc743312b0f6e56198ea0a8cfd079
--
2.35.3
reply other threads:[~2024-06-26 7:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240626070522.13389-1-tdevries@suse.de \
--to=tdevries@suse.de \
--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).