This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Fix watch_thread_num testcase for ppc32
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 09 Jan 2008 01:34:11 -0200
- Subject: [patch] Fix watch_thread_num testcase for ppc32
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
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);
}