This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix watch_thread_num testcase for ppc32


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]