summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-08-26 14:05:45 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-08-27 16:32:40 +0100
commitc2015ce4a4019ab9b026f13c33a7f55e8e0d77a0 (patch)
tree47a3c633c37f32a59584395d72e8713e3c534cf2 /gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
parent9e7ed8b080afa19fff25244913594f95af282657 (diff)
downloadbinutils-gdb-c2015ce4a4019ab9b026f13c33a7f55e8e0d77a0.tar.gz
gdb/testsuite: make test names unique in gdb.arch/*.exp
Make the test names unique in gdb.arch/*.exp by either modifying the test names or using with_test_prefix. I have also fixed a typo 'forth' -> 'fourth' throughout gdb.arch/*. Finally, I replaced code like this: gdb_test "break [gdb_get_line_number "first breakpoint here"]" \ "Breakpoint .* at .*${srcfile}.*" \ "set first breakpoint in main" With this: gdb_breakpoint [gdb_get_line_number "first breakpoint here"] In those files that I was already modifying for the other reasons given above. gdb/testsuite/ChangeLog: * gdb.arch/amd64-byte.exp: Make test names unique, use gdb_breakpoint, and fix typo 'forth' -> 'fourth'. * gdb.arch/amd64-dword.exp: Likewise. * gdb.arch/amd64-pseudo.c: Fix typo 'forth' -> 'fourth'. * gdb.arch/amd64-stap-special-operands.exp: Make test names unique. * gdb.arch/amd64-tailcall-ret.exp: Likewise. * gdb.arch/amd64-word.exp: Make test names unique, use gdb_breakpoint, and fix typo 'forth' -> 'fourth'. * gdb.arch/i386-byte.exp: Make test names unique, use gdb_breakpoint. * gdb.arch/i386-word.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp')
-rw-r--r--gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
index 4dc5cd815f6..60c9a504176 100644
--- a/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
+++ b/gdb/testsuite/gdb.arch/amd64-tailcall-ret.exp
@@ -34,11 +34,11 @@ if ![runto_main] {
}
gdb_breakpoint "g"
-gdb_continue_to_breakpoint "g" ".* v = 2;"
+gdb_continue_to_breakpoint "first time in g" ".* v = 2;"
gdb_test "return" { f \(\); /\* second \*/} "return" \
{Make g return now\? \(y or n\) } "y"
-gdb_continue_to_breakpoint "g" ".* v = 2;"
+gdb_continue_to_breakpoint "second time in g" ".* v = 2;"
gdb_test "finish" " v = 3;"