From patchwork Wed Mar 19 15:57:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 163 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (caibbdcaabja.dreamhost.com [208.113.200.190]) by wilcox.dreamhost.com (Postfix) with ESMTP id D97C63600D6 for ; Wed, 19 Mar 2014 08:58:34 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id 8594F62DD6BB5; Wed, 19 Mar 2014 08:58:34 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 6A43461CB0D9B for ; Wed, 19 Mar 2014 08:58:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=ghPByFU5g/9saLwfuwUA5PF/0I3Mwae eVGUr4ha2WNsd2lOxgBI4XMxIvOifJyBgZqT6Sof9crrTFtgMfhXH3xn3fg5TsgA QMCJwYLZGCjN4oqLgKu73jH8tNeLsh3ASrfgnp6ZwC2rH1JC7+3nKrx1shq46Yu2 BxvmWYXxfCtM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=fRkn1J3+l3RLEj+G9jGesZpMDzE=; b=g0sSd 1kEtDiDHCCwTHY1mCKNh+GvEY0ikOEeI7WixiyClGe8FkOJlPwFv5EIXnITOY9Jg FsuDppb+RDPwYeatgY7ZUzW3VnuCYYfgt8pSENeRp4L2HF2W8LjXGBdXHukqvKtf B8gCQEFxfEo3e1JesuB9xV5Aq1hBWKJkrx9wmE= Received: (qmail 20013 invoked by alias); 19 Mar 2014 15:58:10 -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 19940 invoked by uid 89); 19 Mar 2014 15:58:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD, UNSUBSCRIBE_BODY 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 ESMTP; Wed, 19 Mar 2014 15:58:09 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2JFw7n1017910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 19 Mar 2014 11:58:08 -0400 Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2JFw1MF008699 for ; Wed, 19 Mar 2014 11:58:06 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PUSHED 4/8] gdb.base/async.exp: Use prepare_for_testing. Date: Wed, 19 Mar 2014 15:57:57 +0000 Message-Id: <1395244681-24272-5-git-send-email-palves@redhat.com> In-Reply-To: <1395244681-24272-1-git-send-email-palves@redhat.com> References: <1395244681-24272-1-git-send-email-palves@redhat.com> X-DH-Original-To: gdb@patchwork.siddhesh.in gdb/testsuite/ 2014-03-19 Pedro Alves * gdb.base/async.exp: Use prepare_for_testing. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/async.exp | 17 ++++------------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cc8de97..bb3d559 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2014-03-19 Pedro Alves + * gdb.base/async.exp: Use prepare_for_testing. + +2014-03-19 Pedro Alves + * gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in the same line. diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp index d4b2b2d..02ca4d1 100644 --- a/gdb/testsuite/gdb.base/async.exp +++ b/gdb/testsuite/gdb.base/async.exp @@ -20,15 +20,6 @@ standard_testfile -if [get_compiler_info] { - return -1 -} - -if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { - untested $testfile.exp - return -1 -} - ######################################## ## ## Don't do any of these tests until we reach consensus on this file. @@ -36,10 +27,10 @@ if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} { return 0 ######################################## -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} +if {[prepare_for_testing $testfile.exp $testfile $srcfile debug]} { + untested $testfile.exp + return -1 +} gdb_test_no_output "set target-async on"