diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-22 10:48:26 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-09-24 13:13:51 +0200 |
commit | e3a2b9fbd2245271e0a0e02a2408665fe737ded9 (patch) | |
tree | 6cdc2b09882534b3c2f1516652d0ff6adf76c0e5 /spec/score/tq/req/enqueue-mrsp.yml | |
parent | spec: Improve mutex try seize specification (diff) | |
download | rtems-central-e3a2b9fbd2245271e0a0e02a2408665fe737ded9.tar.bz2 |
spec: Test thread queue API change
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 ); |