summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-19 12:49:35 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-19 12:49:35 +0100
commit98a1ce96eae2445f3d56985aee7d8607529b5319 (patch)
tree8664fe048675da2b3d5fc726e1d3d9148fe385f7
parentacc469d0dd83d5df341692f8b49be13dadcebf75 (diff)
testsuites/validation/tc-sched-yield.c
-rw-r--r--testsuites/validation/tc-sched-yield.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuites/validation/tc-sched-yield.c b/testsuites/validation/tc-sched-yield.c
index 0eda079650..5421f734a0 100644
--- a/testsuites/validation/tc-sched-yield.c
+++ b/testsuites/validation/tc-sched-yield.c
@@ -247,11 +247,8 @@ static void MoveToHelping( Context *ctx )
{
ctx->tq_ctx.busy_wait[ MOVER ] = true;
TQSend( &ctx->tq_ctx, MOVER, TQ_EVENT_BUSY_WAIT );
-
- while ( rtems_scheduler_get_processor() != 1 ) {
- /* Wait */
- }
-
+ TQWaitForEventsReceived( &ctx->tq_ctx, MOVER );
+ T_eq_u32( rtems_scheduler_get_processor(), 1 );
ctx->tq_ctx.busy_wait[ MOVER ] = false;
TQWaitForExecutionStop( &ctx->tq_ctx, MOVER );
}