From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14234 invoked by alias); 19 Mar 2014 10:28:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14223 invoked by uid 89); 19 Mar 2014 10:28:59 -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,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 ESMTP; Wed, 19 Mar 2014 10:28:58 +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 s2JASuf7022221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Mar 2014 06:28:56 -0400 Received: from [127.0.0.1] (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 s2JASs4i018905; Wed, 19 Mar 2014 06:28:54 -0400 Message-ID: <53297165.70007@redhat.com> Date: Wed, 19 Mar 2014 10:28:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Hui Zhu CC: gdb-patches ml Subject: Re: [PATCH 1/1] Fix internal warning when "gdb -p xxx" (test) References: <53271C09.5000709@mentor.com> <53271ED2.6010707@redhat.com> <53272958.1080605@redhat.com> <5327F7D0.1050304@mentor.com> <53281C69.7090703@redhat.com> <532916F6.9000808@mentor.com> In-Reply-To: <532916F6.9000808@mentor.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-03/txt/msg00444.txt.bz2 On 03/19/2014 04:03 AM, Hui Zhu wrote: > + eval "spawn $GDB $INTERNAL_GDBFLAGS $GDBFLAGS --pid=$testpid" > + expect { > + -re "Reading symbols from.*$gdb_prompt $" { > + pass "starting with --pid=$testpid" Don't add the $testpid to the PASS/FAIL line, as it'll change between testsuite runs, making gdb.sum diffs harder. > + } > + timeout { fail "(timeout) starting with --pid=$testpid" } Instead of repeating the text, write: set test "starting with --pid" expect { -re "Reading symbols from.*$gdb_prompt $" { pass "$test" } timeout { fail "$test (timeout)" } } Otherwise OK. Thanks! -- Pedro Alves