aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-02-27 18:48:23 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-02-27 18:48:23 +0000
commit5b967901c5e4ac6f4d4e0df081e72246ca9056ff (patch)
tree279a5d61953296cce6af528a82c55216831d747e
parent6447023f098c9c9eb5fc4739cd81457aa93fcf7d (diff)
downloadgdb-5b967901c5e4ac6f4d4e0df081e72246ca9056ff.zip
gdb-5b967901c5e4ac6f4d4e0df081e72246ca9056ff.tar.gz
gdb-5b967901c5e4ac6f4d4e0df081e72246ca9056ff.tar.bz2
gdb/testsuite/
* gdb.threads/fork-thread-pending.c (main): Add alarm.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.threads/fork-thread-pending.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3b34dc6..5fab3bc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2013-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * gdb.threads/fork-thread-pending.c (main): Add alarm.
+
+2013-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* gdb.base/valgrind-infcall.exp (valgrind_pid): New variable.
Add final kill of ${valgrind_pid}.
diff --git a/gdb/testsuite/gdb.threads/fork-thread-pending.c b/gdb/testsuite/gdb.threads/fork-thread-pending.c
index 43188bd..1c06c0b 100644
--- a/gdb/testsuite/gdb.threads/fork-thread-pending.c
+++ b/gdb/testsuite/gdb.threads/fork-thread-pending.c
@@ -94,6 +94,8 @@ main (void)
int args[NUMTHREADS];
int i, j;
+ alarm (600);
+
i = pthread_barrier_init (&barrier, NULL, NUMTHREADS);
assert (i == 0);