From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24827 invoked by alias); 16 Mar 2016 22:18:51 -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 24806 invoked by uid 89); 16 Mar 2016 22:18:50 -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,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1408 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 16 Mar 2016 22:18:48 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1agJmA-0001zo-Gd from Don_Breazeal@mentor.com ; Wed, 16 Mar 2016 15:18:46 -0700 Received: from [172.30.2.127] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 16 Mar 2016 15:18:46 -0700 Subject: Re: [PATCH v2 2/3] PR remote/19496, interrupted syscall in forking-threads-plus-bkpt To: Pedro Alves , References: <1458152750-25119-1-git-send-email-donb@codesourcery.com> <56E9A6FC.7070305@redhat.com> From: Don Breazeal Message-ID: <56E9DBBF.4030400@codesourcery.com> Date: Wed, 16 Mar 2016 22:18:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E9A6FC.7070305@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00271.txt.bz2 On 3/16/2016 11:33 AM, Pedro Alves wrote: > On 03/16/2016 06:25 PM, Don Breazeal wrote: > >> --- a/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp >> +++ b/gdb/testsuite/gdb.threads/forking-threads-plus-breakpoint.exp >> @@ -72,6 +72,7 @@ proc do_test { cond_bp_target detach_on_fork displaced } { >> global decimal gdb_prompt >> global linenum >> global is_remote_target >> + global timeout > > Don't need this. > >> >> set saved_gdbflags $GDBFLAGS >> set GDBFLAGS [concat $GDBFLAGS " -ex \"set non-stop on\""] >> @@ -115,18 +116,20 @@ proc do_test { cond_bp_target detach_on_fork displaced } { >> set fork_count 0 >> set ok 0 >> >> - set test "inferior 1 exited" >> - gdb_test_multiple "" $test { >> - -re "Inferior 1 \(\[^\r\n\]+\) exited normally" { >> - set ok 1 >> - pass $test >> - } >> - -re "Inferior $decimal \(\[^\r\n\]+\) exited normally" { >> - incr fork_count >> - if {$fork_count <= 100} { >> - exp_continue >> - } else { >> - fail "$test (too many forks)" >> + with_timeout_factor 90 { > > Eeeek. :-) This is a factor, not absolute time. > > The default is 10 seconds, so a factor of 9 or 10 > should suffice. I'd say make it 10, just because it is > round and matches the number of threads. > > Otherwise OK. > > Thanks, > Pedro Alves > Thanks Pedro. This is now pushed, with changes. --Don