aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-06-26 09:05:09 +0200
committerTom de Vries <tdevries@suse.de>2024-06-26 09:05:09 +0200
commitcbccccfdf19a388abb10579aea42c8b35c25c933 (patch)
tree085dd69459db343ecc6a93837091be6f39558c1b /gdb
parentc44008bda2fdc743312b0f6e56198ea0a8cfd079 (diff)
downloadgdb-cbccccfdf19a388abb10579aea42c8b35c25c933.zip
gdb-cbccccfdf19a388abb10579aea42c8b35c25c933.tar.gz
gdb-cbccccfdf19a388abb10579aea42c8b35c25c933.tar.bz2
[gdb/testsuite] Minor cleanup in gdb.base/bg-execution-repeat.exp
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/bg-execution-repeat.exp11
1 files 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 35ddb34..61f26f3 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.