From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110473 invoked by alias); 16 Mar 2016 18:33:37 -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 110459 invoked by uid 89); 16 Mar 2016 18:33:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1258 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; Wed, 16 Mar 2016 18:33:35 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 06605C00F23D; Wed, 16 Mar 2016 18:33:34 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2GIXWnX020472; Wed, 16 Mar 2016 14:33:33 -0400 Subject: Re: [PATCH v2 2/3] PR remote/19496, interrupted syscall in forking-threads-plus-bkpt To: Don Breazeal , gdb-patches@sourceware.org References: <1458152750-25119-1-git-send-email-donb@codesourcery.com> From: Pedro Alves Message-ID: <56E9A6FC.7070305@redhat.com> Date: Wed, 16 Mar 2016 18:33:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1458152750-25119-1-git-send-email-donb@codesourcery.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-03/txt/msg00264.txt.bz2 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