From patchwork Tue Apr 21 18:08:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 6352 Received: (qmail 92731 invoked by alias); 21 Apr 2015 18:08:43 -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 92515 invoked by uid 89); 21 Apr 2015 18:08:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=no 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:40 +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 9B5CE8E69E for ; Tue, 21 Apr 2015 18:08:39 +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 t3LI8WKt028722 for ; Tue, 21 Apr 2015 14:08:39 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 06/24] Don't rely on inferior I/O in gdb.base/restore.exp Date: Tue, 21 Apr 2015 19:08:13 +0100 Message-Id: <1429639711-16459-7-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> There seems to be no point in relying on stdio here. Simply use gdb_continue_to_end instead. (not removing the printf calls, as the .c file is half generated.) gdb/testsuite/ChangeLog: 2015-04-21 Pedro Alves * gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end. --- gdb/testsuite/gdb.base/restore.exp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/gdb/testsuite/gdb.base/restore.exp b/gdb/testsuite/gdb.base/restore.exp index a02ba4f..bd9dfbf 100644 --- a/gdb/testsuite/gdb.base/restore.exp +++ b/gdb/testsuite/gdb.base/restore.exp @@ -79,20 +79,7 @@ proc restore_tests { } { } } - if ![gdb_skip_stdio_test "run to completion"] { - send_gdb "continue\n" - - gdb_expect { - -re "exiting" { - pass "run to completion" - } - timeout { - fail "(timeout) run to completion" - } - } - } else { - gdb_test "continue" ".*" "" - } + gdb_continue_to_end "" continue 1 } set prev_timeout $timeout