summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-08 14:40:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-09 15:25:35 +0200
commit8b5158b4ba35856156f9d2e79d9d00a59bce60db (patch)
tree90f9d9a838f2562ddfba7381c72cd3485d66a391
parentspec: Update due to API changes (diff)
downloadrtems-central-8b5158b4ba35856156f9d2e79d9d00a59bce60db.tar.bz2
spec: Use GetThread() from test support
-rw-r--r--spec/rtems/sem/req/release.yml13
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/rtems/sem/req/release.yml b/spec/rtems/sem/req/release.yml
index d877b6be..174a6533 100644
--- a/spec/rtems/sem/req/release.yml
+++ b/spec/rtems/sem/req/release.yml
@@ -505,7 +505,6 @@ test-includes:
- rtems.h
- string.h
- rtems/rtems/semimpl.h
-- rtems/score/threadimpl.h
test-local-includes:
- tc-support.h
- ts-config.h
@@ -663,17 +662,6 @@ test-support: |
T_rsc_success( sc );
}
- static Thread_Control *GetThread( rtems_id id )
- {
- Thread_Control *the_thread;
- ISR_lock_Context lock_context;
-
- the_thread = _Thread_Get( id, &lock_context );
- T_assert_not_null( the_thread );
- _ISR_lock_ISR_enable( &lock_context);
- return the_thread;
- }
-
static void SendAndWaitForIntendToBlock(
const Context *ctx,
WorkerKind worker,
@@ -685,6 +673,7 @@ test-support: |
Send( ctx, worker, events );
the_thread = GetThread( ctx->worker_id[ worker ] );
+ T_assert_not_null( the_thread );
intend_to_block = THREAD_WAIT_CLASS_OBJECT |
THREAD_WAIT_STATE_INTEND_TO_BLOCK;