[rtems-central commit] spec: Delete resources in validation tests

Sebastian Huber sebh at rtems.org
Fri Sep 18 08:22:25 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Sep 18 10:12:48 2020 +0200

spec: Delete resources in validation tests

---

 spec/rtems/barrier/val/ident.yml |  4 +++-
 spec/rtems/message/val/ident.yml |  4 +++-
 spec/rtems/part/val/ident.yml    |  4 +++-
 spec/rtems/ratemon/val/ident.yml |  4 +++-
 spec/rtems/sem/val/ident.yml     |  4 +++-
 spec/rtems/task/req/ident.yml    | 11 ++++++++++-
 spec/rtems/timer/val/ident.yml   |  4 +++-
 spec/rtems/userext/val/ident.yml |  4 +++-
 8 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/spec/rtems/barrier/val/ident.yml b/spec/rtems/barrier/val/ident.yml
index 2db5bdc..86e3021 100644
--- a/spec/rtems/barrier/val/ident.yml
+++ b/spec/rtems/barrier/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_barrier_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/message/val/ident.yml b/spec/rtems/message/val/ident.yml
index 2a1e9ff..7b24c25 100644
--- a/spec/rtems/message/val/ident.yml
+++ b/spec/rtems/message/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_message_queue_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/part/val/ident.yml b/spec/rtems/part/val/ident.yml
index 4af46be..c2bcf40 100644
--- a/spec/rtems/part/val/ident.yml
+++ b/spec/rtems/part/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_partition_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/ratemon/val/ident.yml b/spec/rtems/ratemon/val/ident.yml
index 37fc0df..7a73c54 100644
--- a/spec/rtems/ratemon/val/ident.yml
+++ b/spec/rtems/ratemon/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_rate_monotonic_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/sem/val/ident.yml b/spec/rtems/sem/val/ident.yml
index 70068b7..d515aab 100644
--- a/spec/rtems/sem/val/ident.yml
+++ b/spec/rtems/sem/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_semaphore_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/task/req/ident.yml b/spec/rtems/task/req/ident.yml
index e1276cc..5466120 100644
--- a/spec/rtems/task/req/ident.yml
+++ b/spec/rtems/task/req/ident.yml
@@ -121,7 +121,16 @@ test-support: |
     .attributes = TASK_ATTRIBUTES
   };
 test-target: testsuites/validation/tc-task-ident.c
-test-teardown: null
+test-teardown:
+  brief: null
+  code: |
+    if ( ctx->id_local_object != 0 ) {
+      rtems_status_code sc;
+
+      sc = rtems_task_delete( ctx->id_local_object );
+      T_rsc_success( sc );
+    }
+  description: null
 text: ${.:text-template}
 transition-map:
 - enabled-by: true
diff --git a/spec/rtems/timer/val/ident.yml b/spec/rtems/timer/val/ident.yml
index dd174cd..6937af2 100644
--- a/spec/rtems/timer/val/ident.yml
+++ b/spec/rtems/timer/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_timer_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []
diff --git a/spec/rtems/userext/val/ident.yml b/spec/rtems/userext/val/ident.yml
index e25374e..37be348 100644
--- a/spec/rtems/userext/val/ident.yml
+++ b/spec/rtems/userext/val/ident.yml
@@ -18,7 +18,9 @@ test-actions:
   links: []
 test-brief: Test the ${../if/ident:/name} directive.
 test-description: null
-test-epilogue: null
+test-epilogue: |
+  sc = rtems_extension_delete( id_local_object );
+  T_rsc_success( sc );
 test-fixture: null
 test-header: null
 test-includes: []



More information about the vc mailing list