aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-01-12 13:21:27 +0000
committerAndrew Burgess <aburgess@redhat.com>2023-01-25 10:01:27 +0000
commit7e5afb58f99052708c460cc3f7b9cc5773a1e45f (patch)
tree7920ee1293ff35505588c4d80f5031a45e8649cd /gdb
parent9433de2d57e0e1c45858ce4d698fc027c7e38a06 (diff)
downloadgdb-7e5afb58f99052708c460cc3f7b9cc5773a1e45f.zip
gdb-7e5afb58f99052708c460cc3f7b9cc5773a1e45f.tar.gz
gdb-7e5afb58f99052708c460cc3f7b9cc5773a1e45f.tar.bz2
gdb/testsuite: use test_gdb_complete_unique more in C++ tests
Spotted in gdb.cp/cpcompletion.exp that we could replace some uses of gdb_test with test_gdb_complete_unique, this will extend the completion testing to check tab-completion as well as completion using the 'complete' command in some additional cases.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.cp/cpcompletion.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/cpcompletion.exp
index 82a7ffb..d69aac6 100644
--- a/gdb/testsuite/gdb.cp/cpcompletion.exp
+++ b/gdb/testsuite/gdb.cp/cpcompletion.exp
@@ -85,16 +85,16 @@ if {![runto "${srcfile}:$bp_location"]} {
# This also tests inheritance -- completion should only see a single
# "get_foo".
-gdb_test "complete p foo1.g" "p foo1\\.get_foo"
+test_gdb_complete_unique "p foo1.g" "p foo1.get_foo"
# Test inheritance without overriding.
-gdb_test "complete p foo1.base" "p foo1\\.base_function_only"
+test_gdb_complete_unique "p foo1.base" "p foo1.base_function_only"
# Test non-completion of constructor names.
-gdb_test "complete p foo1.Fo" "p foo1\\.Foofoo"
+test_gdb_complete_unique "p foo1.Fo" "p foo1.Foofoo"
# Test completion with an anonymous struct.
-gdb_test "complete p a.g" "p a\\.get"
+test_gdb_complete_unique "p a.g" "p a.get"
with_test_prefix "expression with namespace" {
# Before the scope operator, GDB shows all the symbols whose