[rtems-central commit] spec: Update due to score API changes

Sebastian Huber sebh at rtems.org
Thu Nov 11 16:01:39 UTC 2021


Module:    rtems-central
Branch:    master
Commit:    a4a40d811060a9d9ed8c1cb3ac9f47c91a01f2ca
Changeset: http://git.rtems.org/rtems-central/commit/?id=a4a40d811060a9d9ed8c1cb3ac9f47c91a01f2ca

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov 11 11:03:35 2021 +0100

spec: Update due to score API changes

---

 spec/rtems/event/req/send-receive.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/spec/rtems/event/req/send-receive.yml b/spec/rtems/event/req/send-receive.yml
index 78a8476..082f8a3 100644
--- a/spec/rtems/event/req/send-receive.yml
+++ b/spec/rtems/event/req/send-receive.yml
@@ -479,7 +479,6 @@ test-prepare: |
   ctx->unsatisfied_pending = 0xffffffff;
   memset( &ctx->thread_switch_log, 0, sizeof( ctx->thread_switch_log ) );
   T_eq_u32( GetPendingEvents( ctx ), 0 );
-  _Thread_Wait_flags_set( ctx->runner_thread, THREAD_WAIT_FLAGS_INITIAL );
 test-setup:
   brief: null
   code: |
@@ -562,14 +561,14 @@ test-support: |
     return flags == ( ctx->wait_class | THREAD_WAIT_STATE_INTEND_TO_BLOCK );
   }
 
-  static bool EventReadyAgain( Context *ctx, Thread_Wait_flags flags )
+  static bool IsReady( Context *ctx, Thread_Wait_flags flags )
   {
-    return flags == ( ctx->wait_class | THREAD_WAIT_STATE_READY_AGAIN );
+    return flags == THREAD_WAIT_STATE_READY;
   }
 
   static bool IsSatisfiedFlags( Context *ctx )
   {
-    return EventReadyAgain(
+    return IsReady(
       ctx,
       _Thread_Wait_flags_get( ctx->runner_thread )
     );



More information about the vc mailing list