public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix duplicates in gdb.opt/inline-cmds.exp
@ 2024-06-20 13:36 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2024-06-20 13:36 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ff05ed68edc34235d06c48cb2178a97642424593
commit ff05ed68edc34235d06c48cb2178a97642424593
Author: Tom de Vries <tdevries@suse.de>
Date: Thu Jun 20 15:37:48 2024 +0200
[gdb/testsuite] Fix duplicates in gdb.opt/inline-cmds.exp
With test-case gdb.opt/inline-cmds.exp on ppc64le-linux, I ran into:
...
PASS: gdb.opt/inline-cmds.exp: finish from marker
...
PASS: gdb.opt/inline-cmds.exp: finish from marker
DUPLICATE: gdb.opt/inline-cmds.exp: finish from marker
...
Fix this by issuing less passes.
Tested on ppc64le-linux.
Diff:
---
gdb/testsuite/gdb.opt/inline-cmds.exp | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/gdb/testsuite/gdb.opt/inline-cmds.exp b/gdb/testsuite/gdb.opt/inline-cmds.exp
index e33c6e1f5d2..bd645e54902 100644
--- a/gdb/testsuite/gdb.opt/inline-cmds.exp
+++ b/gdb/testsuite/gdb.opt/inline-cmds.exp
@@ -243,13 +243,13 @@ gdb_test "step" ".*set breakpoint 2 here.*" "step into finish marker"
# the call instruction which still are part of the call sequence,
# so it should be expected to return to the caller line after issue
# a 'finish' command.
-gdb_test_multiple "finish" "finish from marker" {
- -re "func1 \\\(\\\);.*\r\n$gdb_prompt $" {
- pass "finish from marker to func1"
+gdb_test_multiple "finish" "finish from marker to func1" {
+ -re -wrap "func1 \\(\\);" {
+ pass $gdb_test_name
}
- -re "marker \\\(\\\);.*\r\n$gdb_prompt $" {
- pass "finish from marker"
- gdb_test "step" "func1 \\\(\\\);.*" "step after marker to reach func1"
+ -re -wrap "marker \\(\\);" {
+ send_gdb "step\n"
+ exp_continue
}
}
@@ -261,13 +261,13 @@ set line6 [gdb_get_line_number "set breakpoint 6 here"]
gdb_breakpoint $line6
gdb_continue_to_breakpoint "before the outer_inline call"
gdb_test "step" "marker \\\(\\\) at .*" "reach 1 the outer_inline call"
-gdb_test_multiple "finish" "finish from marker" {
- -re "main \\\(\\\) at .*outer_inline2 \\\(\\\);.*\r\n$gdb_prompt $" {
- pass "reach outer_inline2"
+gdb_test_multiple "finish" "reach outer_inline2" {
+ -re -wrap "outer_inline2 \\(\\);" {
+ pass $gdb_test_name
}
- -re "main \\\(\\\) at .*marker \\\(\\\);.*\r\n$gdb_prompt $" {
- pass "finish from marker"
- gdb_test "step" "outer_inline2 \\\(\\\);.*" "step after marker to reach outer_inline2"
+ -re -wrap "marker \\(\\); .*" {
+ send_gdb "step\n"
+ exp_continue
}
}
gdb_test "bt" "#0 main.*" "backtrace at main of outer_inline"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-20 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-20 13:36 [binutils-gdb] [gdb/testsuite] Fix duplicates in gdb.opt/inline-cmds.exp Tom de Vries
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).