Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Fix watch_thread_num testcase for ppc32
@ 2008-01-09  3:34 Luis Machado
  2008-01-09  4:15 ` Joel Brobecker
  2008-01-09 10:05 ` Andreas Schwab
  0 siblings, 2 replies; 7+ messages in thread
From: Luis Machado @ 2008-01-09  3:34 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

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

[-- Attachment #2: thread_num_test_fix.diff --]
[-- Type: text/x-patch, Size: 673 bytes --]

2008-01-09  Luis Machado  <luisgpm@br.ibm.com>

	* 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);
 }

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-09 12:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09  3:34 [patch] Fix watch_thread_num testcase for ppc32 Luis Machado
2008-01-09  4:15 ` Joel Brobecker
2008-01-09  9:39   ` Luis Machado
2008-01-09 12:48     ` Daniel Jacobowitz
2008-01-09 12:55       ` Luis Machado
2008-01-09 10:05 ` Andreas Schwab
2008-01-09 11:07   ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox