From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1726) id AEB7D3858D33; Wed, 25 Jan 2023 10:13:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEB7D3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674641582; bh=NNUgLItX1ZI80yFhDBiq///TuCtunOUM4U0s2YCeJJY=; h=From:To:Subject:Date:From; b=D9tj9G4msr+LhYG4ttRC0LkSaML7xQ/nM3PJ7/juMbfwRG86nqGX9cms2ytoVkpG0 VRi9m5lEDWfoN5sMyD837Z8L/6WXsuIOtwfv/dck2AQDjYlpbaVM+IwL4KvJ4BVc3j G/+yE2zzKZQWOW14A1ZSG+6DOsa0mdVhFvMJIgno= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Andrew Burgess To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: use test_gdb_complete_unique more in C++ tests X-Act-Checkin: binutils-gdb X-Git-Author: Andrew Burgess X-Git-Refname: refs/heads/master X-Git-Oldrev: 9433de2d57e0e1c45858ce4d698fc027c7e38a06 X-Git-Newrev: 7e5afb58f99052708c460cc3f7b9cc5773a1e45f Message-Id: <20230125101302.AEB7D3858D33@sourceware.org> Date: Wed, 25 Jan 2023 10:13:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D7e5afb58f990= 52708c460cc3f7b9cc5773a1e45f commit 7e5afb58f99052708c460cc3f7b9cc5773a1e45f Author: Andrew Burgess Date: Thu Jan 12 13:21:27 2023 +0000 gdb/testsuite: use test_gdb_complete_unique more in C++ tests =20 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. Diff: --- gdb/testsuite/gdb.cp/cpcompletion.exp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.cp/cpcompletion.exp b/gdb/testsuite/gdb.cp/c= pcompletion.exp index 82a7ffb6fb4..d69aac6f79f 100644 --- a/gdb/testsuite/gdb.cp/cpcompletion.exp +++ b/gdb/testsuite/gdb.cp/cpcompletion.exp @@ -85,16 +85,16 @@ if {![runto "${srcfile}:$bp_location"]} { =20 # 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" =20 # 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" =20 # 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" =20 # 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" =20 with_test_prefix "expression with namespace" { # Before the scope operator, GDB shows all the symbols whose