forked from Imagelibrary/binutils-gdb
[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.
This commit is contained in:
@@ -41,14 +41,9 @@ proc test {continue_cmd} {
|
|||||||
|
|
||||||
gdb_breakpoint "$linenum"
|
gdb_breakpoint "$linenum"
|
||||||
|
|
||||||
set test $continue_cmd
|
# If the breakpoint triggers soon enough we see further output after the
|
||||||
gdb_test_multiple $test $test {
|
# prompt, so no prompt anchor.
|
||||||
-re "Continuing\\.\r\n$gdb_prompt " {
|
gdb_test -no-prompt-anchor $continue_cmd [string_to_regexp "Continuing."]
|
||||||
# Note no end anchor. If the breakpoint triggers soon enough
|
|
||||||
# enough we see further output after the prompt.
|
|
||||||
pass $test
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Wait for the stop. Don't expect a prompt, as we had resumed the
|
# Wait for the stop. Don't expect a prompt, as we had resumed the
|
||||||
# inferior in the background.
|
# inferior in the background.
|
||||||
|
|||||||
Reference in New Issue
Block a user