aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/gdb.threads/watchpoint-fork-mt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c b/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c
index a99e288..3cd3a5e 100644
--- a/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c
+++ b/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c
@@ -64,7 +64,7 @@ start (void *arg)
while (step != 1)
{
- i = pthread_yield ();
+ i = sched_yield ();
assert (i == 0);
}
@@ -76,7 +76,7 @@ start (void *arg)
if (step == 99)
goto step_99;
- i = pthread_yield ();
+ i = sched_yield ();
assert (i == 0);
}
@@ -92,7 +92,7 @@ step_3:
if (step == 99)
goto step_99;
- i = pthread_yield ();
+ i = sched_yield ();
assert (i == 0);
}
@@ -132,7 +132,7 @@ main (void)
step = 1;
while (step != 2)
{
- i = pthread_yield ();
+ i = sched_yield ();
assert (i == 0);
}
@@ -149,7 +149,7 @@ main (void)
#endif
while (step != 4)
{
- i = pthread_yield ();
+ i = sched_yield ();
assert (i == 0);
}