From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 0C9CF3858C74 for ; Thu, 12 Jan 2023 19:08:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0C9CF3858C74 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673550503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y0HLrZ5iRou9fSZ5+Dn9R5f7JMZ6n4aNFweKEf1yqqs=; b=Fi8cvny+gf8xbfuijmD5V6ScyaxcuMpV2moepFeN4rE+JYk5EKro2xrkTh21xKZF6Km4ud +8iFwrhaDl37LoreWzvxo4BnWcC6NQxF+IIsqZgiFpcevT+WyHmf/cGNEFsabPWMytEs56 SJlZeZ13rGeYxndLuAeW0xVz/FV3uKg= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-256-JDsSyjX9PNW9DxGxMv3eYA-1; Thu, 12 Jan 2023 14:08:22 -0500 X-MC-Unique: JDsSyjX9PNW9DxGxMv3eYA-1 Received: by mail-wm1-f71.google.com with SMTP id bd6-20020a05600c1f0600b003d96f7f2396so12922162wmb.3 for ; Thu, 12 Jan 2023 11:08:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=y0HLrZ5iRou9fSZ5+Dn9R5f7JMZ6n4aNFweKEf1yqqs=; b=cXu4Yu4fojRCFLfP+a60rWuUB3R52IrzRtLpKQ+x8U2VswoG/aWbD0/6eReuIX/tSi V1IoKOdQ7BRAINioNFDNlOT6qOMUZ2568AvedOeFuV8+7ejJ2IHa7eka53g5EC6eOJQ8 6JDJt9oaDq31/cXx90llGMrMJ2kwaJl2ZfrJDcD2xBzBDiLKAuJJa+THYTJ4GseOyyuP 7i4d7zezRcf9Vu2t/ghjLM+sIVGA92VkULClnVIqt4YKTTR6kFx4Oa13SI1qMi8GPNT7 Z461lscGWvobIkREI2ZbY+8IszElc3Qa85j2BCLi/jPWPdnrwyb+lgOLPLrNh+tUV+RS W2+g== X-Gm-Message-State: AFqh2krJNL7tlUwqHXnLfAgPhfJyIDhPYpzZ2gih/cuGrNHYspxtUs73 vOZ+OGy0esiD2g2VXSE2C3sI6pZqXDRzk6iEb/r0/p6hJ8K+tw+DHLdGQZ0GBxEge8bCCvI2gnG HKLyQUH65vC0uyKEd8/zQJcZt9RFmUTKM3rBsKXLWRge5cPfyc4uvcN+f84MhSiHlF0dU0rwDYw == X-Received: by 2002:a05:600c:4aa8:b0:3d1:cee0:46d0 with SMTP id b40-20020a05600c4aa800b003d1cee046d0mr55672821wmp.25.1673550501390; Thu, 12 Jan 2023 11:08:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8mZN6TXElzkVwzA+J2vsGBVqbcrDKC+OGhft3TQ+IPiZUEyFcIGVeuYiR7mg3D40xMhDpxg== X-Received: by 2002:a05:600c:4aa8:b0:3d1:cee0:46d0 with SMTP id b40-20020a05600c4aa800b003d1cee046d0mr55672806wmp.25.1673550501125; Thu, 12 Jan 2023 11:08:21 -0800 (PST) Received: from localhost (92.40.218.34.threembb.co.uk. [92.40.218.34]) by smtp.gmail.com with ESMTPSA id j30-20020a05600c1c1e00b003d9f14e9085sm15696645wms.17.2023.01.12.11.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 11:08:20 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 1/2] gdb/testsuite: use test_gdb_complete_unique more in C++ tests Date: Thu, 12 Jan 2023 19:08:10 +0000 Message-Id: <8a024e8dabe4c53d0b3bd307d42e92572bf5f4c7.1673550414.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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. --- 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/cpcompletion.exp index 931f376a23d..371e90cca7d 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 -- 2.25.4