summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-18 10:12:48 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-18 10:22:07 +0200
commita1c17c58ca61eb898a5daf928eb3e9e40cf1a778 (patch)
treeb3074f17ba69dfc9fd8b47d57e89e8ca3d22db09
parent1385ff052f252785d4ba307c50701f4e6b6b0a86 (diff)
downloadrtems-central-a1c17c58ca61eb898a5daf928eb3e9e40cf1a778.tar.bz2
spec: Delete resources in validation tests
-rw-r--r--spec/rtems/barrier/val/ident.yml4
-rw-r--r--spec/rtems/message/val/ident.yml4
-rw-r--r--spec/rtems/part/val/ident.yml4
-rw-r--r--spec/rtems/ratemon/val/ident.yml4
-rw-r--r--spec/rtems/sem/val/ident.yml4
-rw-r--r--spec/rtems/task/req/ident.yml11
-rw-r--r--spec/rtems/timer/val/ident.yml4
-rw-r--r--spec/rtems/userext/val/ident.yml4
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: []