diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-04 08:16:58 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-04 14:23:23 +0100 |
commit | a4a93bef3fb98b4132f42a526a946a38712acf50 (patch) | |
tree | 066e60283c6746d6794801b93de21e8454373fd2 /spec/rtems/timer/val/ident.yml | |
parent | validation: Add context and fixture to test case (diff) | |
download | rtems-central-a4a93bef3fb98b4132f42a526a946a38712acf50.tar.bz2 |
spec: Avoid test prologue/epilogue in test cases
Diffstat (limited to 'spec/rtems/timer/val/ident.yml')
-rw-r--r-- | spec/rtems/timer/val/ident.yml | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/spec/rtems/timer/val/ident.yml b/spec/rtems/timer/val/ident.yml index 446e5dc9..d69ca34e 100644 --- a/spec/rtems/timer/val/ident.yml +++ b/spec/rtems/timer/val/ident.yml @@ -7,10 +7,22 @@ links: uid: ../req/ident test-actions: - action: | + rtems_status_code sc; + rtems_id id_local_object; + + sc = rtems_timer_create( + ClassicObjectLocalIdentName, + &id_local_object + ); + T_assert_rsc_success( sc ); + ${../../req/ident-local:/test-run}( id_local_object, ClassicTimerIdentAction ); + + sc = rtems_timer_delete( id_local_object ); + T_rsc_success( sc ); checks: [] description: | Run the generic object identification tests for Classic API timer class @@ -20,22 +32,12 @@ test-brief: Test the ${../if/ident:/name} directive. test-context: [] test-context-support: null test-description: null -test-epilogue: | - sc = rtems_timer_delete( id_local_object ); - T_rsc_success( sc ); +test-epilogue: null test-header: null test-includes: [] test-local-includes: - tr-object-ident-local.h -test-prologue: | - rtems_status_code sc; - rtems_id id_local_object; - - sc = rtems_timer_create( - ClassicObjectLocalIdentName, - &id_local_object - ); - T_assert_rsc_success( sc ); +test-prologue: null test-setup: null test-stop: null test-support: | |