[rtems commit] validation: Fix formatting

Sebastian Huber sebh at rtems.org
Fri Jul 21 07:10:11 UTC 2023


Module:    rtems
Branch:    master
Commit:    3a754a3de26fa5154a71b5e9ebcef65ac607d298
Changeset: http://git.rtems.org/rtems/commit/?id=3a754a3de26fa5154a71b5e9ebcef65ac607d298

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 21 09:30:44 2023 +0200

validation: Fix formatting

---

 testsuites/validation/tc-sem-flush.c          | 4 +++-
 testsuites/validation/tc-sem-timeout.c        | 8 ++++++--
 testsuites/validation/tr-tq-enqueue-ceiling.c | 4 +++-
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/testsuites/validation/tc-sem-flush.c b/testsuites/validation/tc-sem-flush.c
index ae25c6da9b..4fb2027354 100644
--- a/testsuites/validation/tc-sem-flush.c
+++ b/testsuites/validation/tc-sem-flush.c
@@ -498,7 +498,9 @@ static void RtemsSemReqFlush_Action( RtemsSemReqFlush_Context *ctx )
 static void RtemsSemReqFlush_Cleanup( RtemsSemReqFlush_Context *ctx )
 {
   rtems_status_code sc;
-  sc = rtems_semaphore_delete( ctx->tq_ctx.thread_queue_id ); T_rsc_success( sc );
+
+  sc = rtems_semaphore_delete( ctx->tq_ctx.thread_queue_id );
+  T_rsc_success( sc );
 }
 
 static const RtemsSemReqFlush_Entry
diff --git a/testsuites/validation/tc-sem-timeout.c b/testsuites/validation/tc-sem-timeout.c
index db7f2fea21..cdef96181e 100644
--- a/testsuites/validation/tc-sem-timeout.c
+++ b/testsuites/validation/tc-sem-timeout.c
@@ -361,8 +361,12 @@ static void RtemsSemReqTimeout_Action( RtemsSemReqTimeout_Context *ctx )
 
 static void RtemsSemReqTimeout_Cleanup( RtemsSemReqTimeout_Context *ctx )
 {
-  if ( ctx->tq_ctx.thread_queue_id != 0 ) { rtems_status_code sc;
-  sc = rtems_semaphore_delete( ctx->tq_ctx.thread_queue_id ); T_rsc_success( sc ); }
+  if ( ctx->tq_ctx.thread_queue_id != 0 ) {
+    rtems_status_code sc;
+
+    sc = rtems_semaphore_delete( ctx->tq_ctx.thread_queue_id );
+    T_rsc_success( sc );
+  }
 }
 
 static const RtemsSemReqTimeout_Entry
diff --git a/testsuites/validation/tr-tq-enqueue-ceiling.c b/testsuites/validation/tr-tq-enqueue-ceiling.c
index 75e63ab37c..592b0aa043 100644
--- a/testsuites/validation/tr-tq-enqueue-ceiling.c
+++ b/testsuites/validation/tr-tq-enqueue-ceiling.c
@@ -454,7 +454,9 @@ static void ScoreTqReqEnqueueCeiling_Prepare(
   ScoreTqReqEnqueueCeiling_Context *ctx
 )
 {
-  ctx->priority = PRIO_PSEUDO_ISR; ctx->other_before = false; ctx->other_after = false;
+  ctx->priority = PRIO_PSEUDO_ISR;
+  ctx->other_before = false;
+  ctx->other_after = false;
 }
 
 static void ScoreTqReqEnqueueCeiling_Action(



More information about the vc mailing list