mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
gdb/testsuite/
* gdb.threads/pthread_cond_wait.c (main): Remove variable ts. Replace nanosleep by sleep.
This commit is contained in:
@ -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>
|
2013-02-14 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* gdb.cp/userdef.exp (ptype &*c): Don't expect an &.
|
* gdb.cp/userdef.exp (ptype &*c): Don't expect an &.
|
||||||
|
@ -59,12 +59,11 @@ int
|
|||||||
main (void)
|
main (void)
|
||||||
{
|
{
|
||||||
pthread_t forever;
|
pthread_t forever;
|
||||||
const struct timespec ts = { 0, 10000000 }; /* 0.01 sec */
|
|
||||||
|
|
||||||
pthread_create (&forever, NULL, forever_pthread, NULL);
|
pthread_create (&forever, NULL, forever_pthread, NULL);
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
nanosleep (&ts, NULL);
|
sleep (2);
|
||||||
break_me();
|
break_me();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user