From patchwork Tue Nov 12 15:23:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 35829 Received: (qmail 14744 invoked by alias); 12 Nov 2019 15:23:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 14724 invoked by uid 89); 12 Nov 2019 15:23:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Nov 2019 15:23:13 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id ADA5420322; Tue, 12 Nov 2019 10:23:11 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id E4393203C3 for ; Tue, 12 Nov 2019 10:23:07 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 8806C28171 for ; Tue, 12 Nov 2019 10:23:07 -0500 (EST) X-Gerrit-PatchSet: 1 Date: Tue, 12 Nov 2019 10:23:07 -0500 From: "Tankut Baris Aktemur (Code Review)" To: gdb-patches@sourceware.org Message-ID: Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange Subject: [review] gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp X-Gerrit-Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7 X-Gerrit-Change-Number: 618 X-Gerrit-ChangeURL: X-Gerrit-Commit: dfdeac7367a5c23d0338195aac920aa7111ef338 References: Reply-To: tankut.baris.aktemur@intel.com, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-76-gf8b6da0ab5 Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/618 ...................................................................... gdb/testsuite: do minor clean-up in gdb.cp/rvalue-ref-overload.exp Simplify the expected test outputs. This is a minor cleanup; no functional change is intended. gdb/testsuite/ChangeLog: 2019-11-12 Tankut Baris Aktemur * gdb.cp/rvalue-ref-overload.exp: Minor cleanup. Change-Id: Ie760a2856cae3be0eeed5496765a5f1cd102d6b7 --- M gdb/testsuite/gdb.cp/rvalue-ref-overload.exp 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp index 693c7ca..e92e901 100644 --- a/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp +++ b/gdb/testsuite/gdb.cp/rvalue-ref-overload.exp @@ -53,20 +53,16 @@ { method public "int overloadConst(const foo &&);" } } -gdb_test "print foo_rr_instance1.overload1arg(arg)" \ - "\\$\[0-9\]+ = 1" \ - "print call overloaded func foo & arg" +gdb_test "print foo_rr_instance1.overload1arg(arg)" "1" -gdb_test "print foo_rr_instance1.overload1arg(static_cast(arg))" \ - "\\$\[0-9\]+ = 2" \ - "print call overloaded func foo && arg" +gdb_test "print foo_rr_instance1.overload1arg(static_cast(arg))" "2" gdb_test "print foo_rr_instance1.overloadConst(arg)" "3" # Test lvalue vs rvalue function overloads -gdb_test "print f (i)" "= 1" "lvalue reference overload" +gdb_test "print f (i)" "1" "lvalue reference overload" -gdb_test "print f (ci)" "= 2" "lvalue reference to const overload" +gdb_test "print f (ci)" "2" "lvalue reference to const overload" setup_kfail "c++/15372" "*-*-*" -gdb_test "print f (3)" "= 3" "rvalue reference overload" +gdb_test "print f (3)" "3" "rvalue reference overload"