From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19151 invoked by alias); 9 Jan 2008 03:34:45 -0000 Received: (qmail 19142 invoked by uid 22791); 9 Jan 2008 03:34:44 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Jan 2008 03:34:17 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id 1F3B239010A for ; Wed, 9 Jan 2008 01:26:26 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m093YFnJ4186144 for ; Wed, 9 Jan 2008 01:34:15 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m093YEuK014286 for ; Wed, 9 Jan 2008 01:34:14 -0200 Received: from [9.8.14.212] ([9.8.14.212]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m093YESt014275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 9 Jan 2008 01:34:14 -0200 Subject: [patch] Fix watch_thread_num testcase for ppc32 From: Luis Machado Reply-To: luisgpm@linux.vnet.ibm.com To: gdb-patches@sourceware.org Content-Type: multipart/mixed; boundary="=-5PAsEZUjTtUehxImPRV0" Date: Wed, 09 Jan 2008 03:34:00 -0000 Message-Id: <1199849652.22083.20.camel@gargoyle> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 X-IsSubscribed: yes 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 X-SW-Source: 2008-01/txt/msg00170.txt.bz2 --=-5PAsEZUjTtUehxImPRV0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 301 Hi folks, The watch_thread_num.exp testcase was timing out on a number of iterations for PPC32, while giving a full pass for PPC64. Removing the usleep(1) call fixed the problem. It gives full passes for both PPC 32/64. Ok to commit? -- Luis Machado Software Engineer IBM Linux Technology Center --=-5PAsEZUjTtUehxImPRV0 Content-Disposition: attachment; filename=thread_num_test_fix.diff Content-Type: text/x-patch; name=thread_num_test_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 673 2008-01-09 Luis Machado * testsuite/gdb.base/watch_thread_num.c: Change shared_var to long and remove usleep call. Index: gdb/testsuite/gdb.base/watch_thread_num.c =================================================================== --- gdb.orig/testsuite/gdb.base/watch_thread_num.c 2008-01-08 19:21:06.000000000 -0800 +++ gdb/testsuite/gdb.base/watch_thread_num.c 2008-01-08 19:28:29.000000000 -0800 @@ -53,10 +53,7 @@ int my_number = (long) arg; /* Don't run forever. Run just short of it :) */ while (shared_var > 0) - { shared_var++; - usleep (1); /* Loop increment. */ - } pthread_exit (NULL); } --=-5PAsEZUjTtUehxImPRV0--