From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id KCn5AN3mUWCtewAAWB0awg (envelope-from ) for ; Wed, 17 Mar 2021 07:24:13 -0400 Received: by simark.ca (Postfix, from userid 112) id F34641EF7C; Wed, 17 Mar 2021 07:24:12 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=DKIM_SIGNED,MAILING_LIST_MULTI, RDNS_NONE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7B7311E789 for ; Wed, 17 Mar 2021 07:24:12 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1C950384BC17; Wed, 17 Mar 2021 11:24:12 +0000 (GMT) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 8DBD2384BC17 for ; Wed, 17 Mar 2021 11:24:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8DBD2384BC17 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x32b.google.com with SMTP id p19so1257362wmq.1 for ; Wed, 17 Mar 2021 04:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zfy1v1XT2FPomriX7qdBe9DKeyBvo3OpVekukDTKs94=; b=KUP25K2FXTcvlYKJpRgbqUNWHH1ddp9OiflSDs1ctIy5uTwMtW3A1nW5u+fc3bS2uk w9Ke5RFz0sbF6s/rActuwuudqr2I2pMOvnjdOkDR0at1raKuIZfcOxUu936nBqA29yHA lxn5sa3mfhHFLi+nqr3AD2Ox+wrPstOaVhT/u8ia1pck6goSBi5sodvvwOrQrh+70ho6 xrGkuzNn8hNtpQQwfJvgjPhbPkZojveH1gFBElXrEr8eXxO0GhXGuqlBOaEbE2jHjQk9 8TtQQul/GIp8foFh6Q/9+Dgp/rvleG6JuUuRnSJur5EY8y/l+N9LGd+7hrGLpKa/d0Co ivVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zfy1v1XT2FPomriX7qdBe9DKeyBvo3OpVekukDTKs94=; b=a1/p/JFK7PwmyjkuYsY1znzSCGvWJp9XtTvT4gOA/ERCZDB+PsxipzMRELzLVG/2bm HRUO4RidYSSfjWkopA6CQW8dnzb7m5c/ZDhGu6cS3DJFnFLTnM4HBOet4Px9rB5pg99v Do5nSXw3k88IblwbPWPhVa4NrlIarM09w/SoMklsLeYcsTgJExbkXO7/PfLUW+X0rFjh 37FP/fmX8UDWLgvUnQxHBgEWWDiyjmmm24DjZuZ0bksZr6YYkmDaNgNHOqblj5kKMVMc 6COvneGw0mP5K0CUoesz6MgGZcgxbuQx80+Uq2WEh6kLe7lTEkZAm7Bv2DUP2Vmd5XyT NnJg== X-Gm-Message-State: AOAM532AHDojQ8rS0MtKADlImIukRKM8EWu2H3ZeFYO573h0G37s9wDa lX/amJighrO/iFc5d34IqKaBLwjzW8RntQ== X-Google-Smtp-Source: ABdhPJwq0yrRA584si4BKXzr7r/YDI03GK8/bn4IRxUYjqNDEnHqKFNSfp1nGukOxYXCc9YqG/+FUQ== X-Received: by 2002:a1c:7d4e:: with SMTP id y75mr3236979wmc.168.1615980247539; Wed, 17 Mar 2021 04:24:07 -0700 (PDT) Received: from localhost (host86-134-238-232.range86-134.btcentralplus.com. [86.134.238.232]) by smtp.gmail.com with ESMTPSA id n6sm29503276wrw.63.2021.03.17.04.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 04:24:07 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCH 4/5] gdb/testsuite: resolve duplicate test name in gdb.cp/cplusfuncs.exp Date: Wed, 17 Mar 2021 11:24:00 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" While resolving duplicate test names I spotted that a test in gdb.cp/cplusfuncs.exp included an unescaped '[]'. In TCL square brackets enclose expressions to evaluate, and so in this case, where there is no enclosed expression, this just evaluates to the empty string. This clearly was not what the test intended, so in this commit I have escaped the square brackets. This has extended the test coverage. gdb/testsuite/ChangeLog: * gdb.cp/cplusfuncs.exp (test_paddr_operator_functions): Escape square brackets in test. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.cp/cplusfuncs.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index 8e24db5db0d..f1c2ff4907f 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -497,7 +497,7 @@ proc test_paddr_operator_functions {} { " = .* $hex " print_addr "foo::operator delete($dm_type_void_star)" - print_addr "foo::operator delete[]($dm_type_void_star)" + print_addr "foo::operator delete\[\]($dm_type_void_star)" print_addr "foo::operator int($dm_type_void)" print_addr "foo::operator $dm_operator_char_star\($dm_type_void)" -- 2.25.4