From patchwork Tue Apr 21 18:08:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 6369 Received: (qmail 115256 invoked by alias); 21 Apr 2015 18:15:37 -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 115230 invoked by uid 89); 21 Apr 2015 18:15:36 -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:15:35 +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 (Postfix) with ESMTPS id DF7B78E924 for ; Tue, 21 Apr 2015 18:08:41 +0000 (UTC) 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 t3LI8WKv028722 for ; Tue, 21 Apr 2015 14:08:41 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 08/24] Make gdb.base/sizeof.exp use gdb_test_stdio Date: Tue, 21 Apr 2015 19:08:15 +0100 Message-Id: <1429639711-16459-9-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/sizeof.exp (check_sizeof, check_valueof): Use gdb_test_stdio. --- gdb/testsuite/gdb.base/sizeof.exp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp index 7fda76e..a237ee3 100644 --- a/gdb/testsuite/gdb.base/sizeof.exp +++ b/gdb/testsuite/gdb.base/sizeof.exp @@ -70,8 +70,10 @@ set sizeof_long_double [get_sizeof "long double" 8] proc check_sizeof { type size } { global gdb_prompt - set pat [string_to_regexp "sizeof (${type}) == ${size}"] - gdb_test "next" "${pat}\[\r\n\]+\[0-9\].*" "check sizeof \"$type\"" + set pat [string_to_regexp "sizeof (${type}) == ${size}\r\n"] + gdb_test_stdio "next" "${pat}" \ + "\[0-9\].*" \ + "check sizeof \"$type\"" } check_sizeof "char" ${sizeof_char} @@ -90,8 +92,10 @@ check_sizeof "long double" ${sizeof_long_double} proc check_valueof { exp val } { global gdb_prompt - set pat [string_to_regexp "valueof (${exp}) == ${val}"] - gdb_test "next" "${pat}\[\r\n\]+\[0-9\].*" "check valueof \"$exp\"" + set pat [string_to_regexp "valueof (${exp}) == ${val}\r\n"] + gdb_test_stdio "next" "${pat}" \ + "\[0-9\].*" \ + "check valueof \"$exp\"" } # Check that GDB and the target agree over the sign of a character.