From patchwork Tue Apr 21 18:08:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 6361 Received: (qmail 95558 invoked by alias); 21 Apr 2015 18:08:54 -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 95233 invoked by uid 89); 21 Apr 2015 18:08:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 21 Apr 2015 18:08:51 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3LI8nxW017649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 21 Apr 2015 14:08:49 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3LI8WL5028722 for ; Tue, 21 Apr 2015 14:08:49 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 16/24] Make gdb.base/shlib-call.exp use gdb_test_stdio Date: Tue, 21 Apr 2015 19:08:23 +0100 Message-Id: <1429639711-16459-17-git-send-email-palves@redhat.com> In-Reply-To: <1429639711-16459-1-git-send-email-palves@redhat.com> References: <1429639711-16459-1-git-send-email-palves@redhat.com> gdb/testsuite/ChangeLog: 2015-04-21 Pedro Alves * gdb.base/shlib-call.exp: Use gdb_test_stdio. --- gdb/testsuite/gdb.base/shlib-call.exp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/gdb/testsuite/gdb.base/shlib-call.exp b/gdb/testsuite/gdb.base/shlib-call.exp index b79165a..2ccaa39 100644 --- a/gdb/testsuite/gdb.base/shlib-call.exp +++ b/gdb/testsuite/gdb.base/shlib-call.exp @@ -79,8 +79,9 @@ gdb_test "print g" "\[0-9\]* = 1" "print g" #step -over if ![gdb_skip_stdio_test "next over shr1"] { - gdb_test "next" \ - "address of sgs is $hex.*g = shr2\\(g\\);" \ + gdb_test_stdio "next" \ + "address of sgs is $hex" \ + "g = shr2\\(g\\);" \ "next over shr1" } else { gdb_test "next" ".*" "" @@ -92,15 +93,17 @@ gdb_test "print g" "\[0-9\]* = 2" "print g" #print shr1(1) if ![gdb_skip_stdio_test "print shr1(1)"] { - gdb_test "print shr1(1)" \ - "address of sgs is $hex.*\[0-9\]* = 2" \ + gdb_test_stdio "print shr1(1)" \ + "address of sgs is $hex" \ + "\[0-9\]* = 2" \ "print shr1(1)" } #print shr1(g) if ![gdb_skip_stdio_test "print shr1(g)"] { - gdb_test "print shr1(g)" \ - "address of sgs is $hex.*\[0-9\]* = 4" \ + gdb_test_stdio "print shr1(g)" \ + "address of sgs is $hex" \ + "\[0-9\]* = 4" \ "print shr1(g)" } @@ -117,8 +120,9 @@ gdb_test "continue" \ #print shr1(1) if ![gdb_skip_stdio_test "print shr1(1) 2nd time"] { - gdb_test "print shr1(1)" \ - "address of sgs is $hex.*\[0-9\]* = 2" \ + gdb_test_stdio "print shr1(1)" \ + "address of sgs is $hex" \ + "\[0-9\]* = 2" \ "print shr1(1) 2nd time" }