sigthread.exp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sigthread.exp

Mark Kettenis
This test is a bit fragile, since it depends on timing of some
operations.  On OpenBSD, 1000000 iterations isn't enough, but
increasing it by a factor 10 does the trick.

ok?

Index: ChangeLog
from  Mark Kettenis  <[hidden email]>

        * gdb.threads/sigthread.c (NSIGS): Make bigger.

Index: gdb.threads/sigthread.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/sigthread.c,v
retrieving revision 1.1
diff -u -p -r1.1 sigthread.c
--- gdb.threads/sigthread.c 8 Jan 2007 21:09:47 -0000 1.1
+++ gdb.threads/sigthread.c 28 Jan 2007 14:30:49 -0000
@@ -18,7 +18,7 @@
 /* Loop long enough for GDB to send a few signals of its own, but
    don't hang around eating CPU forever if something goes wrong during
    testing.  */
-#define NSIGS 1000000
+#define NSIGS 10000000
 
 void
 handler (int sig)
Reply | Threaded
Open this post in threaded view
|

Re: sigthread.exp

Daniel Jacobowitz-2
On Sun, Jan 28, 2007 at 03:35:21PM +0100, Mark Kettenis wrote:
> This test is a bit fragile, since it depends on timing of some
> operations.  On OpenBSD, 1000000 iterations isn't enough, but
> increasing it by a factor 10 does the trick.
>
> ok?

Yes, this is OK.  Thanks.


--
Daniel Jacobowitz
CodeSourcery