diff options
Diffstat (limited to 'spec/score/tq/req/enqueue-mrsp.yml')
-rw-r--r-- | spec/score/tq/req/enqueue-mrsp.yml | 55 |
1 files changed, 8 insertions, 47 deletions
diff --git a/spec/score/tq/req/enqueue-mrsp.yml b/spec/score/tq/req/enqueue-mrsp.yml index 2708cab3..9adeb8ca 100644 --- a/spec/score/tq/req/enqueue-mrsp.yml +++ b/spec/score/tq/req/enqueue-mrsp.yml @@ -310,45 +310,17 @@ test-setup: brief: null code: | if ( CanDoFullValidation() ) { - rtems_status_code sc; - - sc = rtems_scheduler_remove_processor( - ctx->tq_ctx->third_scheduler_id, - 2 - ); - T_rsc_success( sc ); - - sc = rtems_scheduler_add_processor( - ctx->tq_ctx->other_scheduler_id, - 2 - ); - T_rsc_success( sc ); - - TQSetScheduler( - ctx->tq_ctx, - TQ_BLOCKER_C, - ctx->tq_ctx->third_scheduler_id, - PRIO_LOW - ); + RemoveProcessor( SCHEDULER_C_ID, 2 ); + AddProcessor( SCHEDULER_B_ID, 2 ); + TQSetScheduler( ctx->tq_ctx, TQ_BLOCKER_C, SCHEDULER_C_ID, PRIO_LOW ); } - TQSetScheduler( - ctx->tq_ctx, - TQ_BLOCKER_A, - ctx->tq_ctx->other_scheduler_id, - PRIO_LOW - ); - TQSetScheduler( - ctx->tq_ctx, - TQ_BLOCKER_B, - ctx->tq_ctx->other_scheduler_id, - PRIO_LOW - ); - + TQSetScheduler( ctx->tq_ctx, TQ_BLOCKER_A, SCHEDULER_B_ID, PRIO_LOW ); + TQSetScheduler( ctx->tq_ctx, TQ_BLOCKER_B, SCHEDULER_B_ID, PRIO_LOW ); TQSetScheduler( ctx->tq_ctx, TQ_BLOCKER_D, - ctx->tq_ctx->runner_scheduler_id, + SCHEDULER_A_ID, PRIO_ULTRA_HIGH ); description: null @@ -369,19 +341,8 @@ test-teardown: brief: null code: | if ( CanDoFullValidation() ) { - rtems_status_code sc; - - sc = rtems_scheduler_remove_processor( - ctx->tq_ctx->other_scheduler_id, - 2 - ); - T_rsc_success( sc ); - - sc = rtems_scheduler_add_processor( - ctx->tq_ctx->third_scheduler_id, - 2 - ); - T_rsc_success( sc ); + RemoveProcessor( SCHEDULER_B_ID, 2 ); + AddProcessor( SCHEDULER_C_ID, 2 ); } TQReset( ctx->tq_ctx ); |