From patchwork Tue Mar 18 23:24:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 151 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 1409B3601A7 for ; Tue, 18 Mar 2014 16:25:04 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14314964) id A917961CAAD8D; Tue, 18 Mar 2014 16:25:03 -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 81C1361CAAD80 for ; Tue, 18 Mar 2014 16:25:03 -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:mime-version :content-type; q=dns; s=default; b=G98T9WPa/RYIQHE5Xgcl0QfgcasQB AYsb7Pa26t9H0XlED4BqPcFhpaPw0HzysebQDoIhUrbn33vzKYEIFG3MZVG1o5t4 GmtVPEfOxaZvZUsYUbtlIohPG6WytiWb+p1uxnmC+9IMMMvUo6ILZeTN+FtOrxIi 5CZQJ2FCS8WPqg= 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:mime-version :content-type; s=default; bh=qoCD7xl3GAb17apjrkmaj6jVFak=; b=rb1 2VuqMTNPTPm0S8ZQzhMZbx/fxJchaS3cZVhm5qgpRSMXWLy1c0pFBWJzjXHYkPDF OMEAwY/EWJNkFUdOsPQf4BDs5Zma7zLJnWhRC8IVZ8CPYycIB5YQga0HoviSelfP OzLCJC7oAJLCNBUNhLzdXfVEbmW6b16162wRy3Pc= Received: (qmail 8676 invoked by alias); 18 Mar 2014 23:25:01 -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 8662 invoked by uid 89); 18 Mar 2014 23:25:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pb0-f51.google.com Received: from mail-pb0-f51.google.com (HELO mail-pb0-f51.google.com) (209.85.160.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 18 Mar 2014 23:24:58 +0000 Received: by mail-pb0-f51.google.com with SMTP id uo5so8016261pbc.38 for ; Tue, 18 Mar 2014 16:24:57 -0700 (PDT) X-Received: by 10.68.19.164 with SMTP id g4mr35839084pbe.36.1395185097050; Tue, 18 Mar 2014 16:24:57 -0700 (PDT) Received: from ruffy-vm.sspiff.org.gmail.com ([172.19.248.225]) by mx.google.com with ESMTPSA id bz4sm56225318pbb.12.2014.03.18.16.24.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Mar 2014 16:24:55 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [commit] Misc cleanups in async.exp Date: Tue, 18 Mar 2014 19:24:54 -0400 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes X-DH-Original-To: gdb@patchwork.siddhesh.in Hi. I realize this test is currently disabled, but I found it while writing another test and figured I'd clean up a few things. Committed. 2014-03-18 Doug Evans * gdb.base/async.exp: Whitespace fixes. Turn on target-async. Fix spelling of exec-done-display. diff --git a/gdb/testsuite/gdb.base/async.exp b/gdb/testsuite/gdb.base/async.exp index 4475ce7..3cd7dfb 100644 --- a/gdb/testsuite/gdb.base/async.exp +++ b/gdb/testsuite/gdb.base/async.exp @@ -39,17 +39,19 @@ return 0 set board [target_info name] set current_target [target_info gdb_protocol] if { $current_target == "remote" } { - unset_board_info "gdb_protocol" - set_board_info "gdb_protocol" "async" - } else { - return 0 - } + unset_board_info "gdb_protocol" + set_board_info "gdb_protocol" "async" +} else { + return 0 +} gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} +gdb_test_no_output "set target-async on" + # # set it up at a breakpoint so we can play with it # @@ -63,7 +65,7 @@ gdb_test "break baz" ".*" "" # # Make sure we get a 'completed' message when the target is done. # -gdb_test "set display-exec-done on" ".*" "" +gdb_test_no_output "set exec-done-display on" send_gdb "next&\n" @@ -126,7 +128,7 @@ gdb_expect { timeout { fail "(timeout) until &" } } -gdb_test "set display-exec-done off" ".*" "" +gdb_test_no_output "set exec-done-display off" unset_board_info "gdb_protocol" set_board_info "gdb_protocol" "remote"