Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* sigthread.exp
@ 2007-01-28 14:35 Mark Kettenis
  2007-01-28 14:43 ` sigthread.exp Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2007-01-28 14:35 UTC (permalink / raw)
  To: gdb-patches

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  <kettenis@gnu.org>

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


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

end of thread, other threads:[~2007-01-28 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-28 14:35 sigthread.exp Mark Kettenis
2007-01-28 14:43 ` sigthread.exp Daniel Jacobowitz

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