diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c2affd18c3a..f67736cd3b6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-02-14 Jan Kratochvil + + * gdb.threads/pthread_cond_wait.c (main): Remove variable ts. Replace + nanosleep by sleep. + 2013-02-14 Pedro Alves * 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 a639e41d6f9..3c28e13a7b9 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(); }