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-23 15:18:39 +0100
commite4319660e0ba21b1cd718002f750e276828918cf (patch)
tree25c28ef294098f963217db2bd250dac5e899e88d
parent00fb61171c2d56a1c2812584f1bf25925420b505 (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 );
}