aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-02-14 15:24:11 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-02-14 15:24:11 +0000
commit420f4384af4aac17ca68d8834519f18d6dbe0ee6 (patch)
tree871cceef7d85fca05cd32e91518d9e9b0fec28c2 /gdb/testsuite
parentd6c44983c381d7624625bf801c1753f1eccd431f (diff)
downloadgdb-420f4384af4aac17ca68d8834519f18d6dbe0ee6.zip
gdb-420f4384af4aac17ca68d8834519f18d6dbe0ee6.tar.gz
gdb-420f4384af4aac17ca68d8834519f18d6dbe0ee6.tar.bz2
gdb/testsuite/
* gdb.threads/pthread_cond_wait.c (main): Remove variable ts. Replace nanosleep by sleep.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/pthread_cond_wait.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index c2affd1..f67736c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.threads/pthread_cond_wait.c (main): Remove variable ts. Replace
+ nanosleep by sleep.
+
2013-02-14 Pedro Alves <palves@redhat.com>
* gdb.cp/userdef.exp (ptype &*c): Don't expect an &.
diff --git a/gdb/testsuite/gdb.threads/pthread_cond_wait.c b/gdb/testsuite/gdb.threads/pthread_cond_wait.c
index a639e41..3c28e13 100644
--- a/gdb/testsuite/gdb.threads/pthread_cond_wait.c
+++ b/gdb/testsuite/gdb.threads/pthread_cond_wait.c
@@ -59,12 +59,11 @@ int
main (void)
{
pthread_t forever;
- const struct timespec ts = { 0, 10000000 }; /* 0.01 sec */
pthread_create (&forever, NULL, forever_pthread, NULL);
for (;;)
{
- nanosleep (&ts, NULL);
+ sleep (2);
break_me();
}