diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-03-29 16:33:39 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-03-30 09:05:53 +0200 |
commit | fdd9004c0b00848e567b40d2d9175a94ef7109aa (patch) | |
tree | 1fbc0e64938a32b3d56f329d91be9212c7f8e899 /spec/rtems/task/req | |
parent | spec: Specify SMP multitasking start error (diff) | |
download | rtems-central-fdd9004c0b00848e567b40d2d9175a94ef7109aa.tar.bz2 |
spec: Use individual names for ident tests
Diffstat (limited to 'spec/rtems/task/req')
-rw-r--r-- | spec/rtems/task/req/ident.yml | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/spec/rtems/task/req/ident.yml b/spec/rtems/task/req/ident.yml index 17b2b526..ba81544e 100644 --- a/spec/rtems/task/req/ident.yml +++ b/spec/rtems/task/req/ident.yml @@ -62,6 +62,7 @@ test-action: | } else { ${../../req/ident:/test-run}( ctx->id_local_object, + DefaultTaskConfig.name, ClassicTaskIdentAction ); } @@ -86,7 +87,7 @@ test-header: null test-includes: [] test-local-includes: - tr-object-ident.h -- ts-config.h +- tx-support.h test-prepare: null test-setup: brief: null @@ -94,7 +95,7 @@ test-setup: rtems_status_code sc; sc = rtems_task_construct( - &ClassicTaskIdentConfig, + &DefaultTaskConfig, &ctx->id_local_object ); T_assert_rsc_success( sc ); @@ -109,28 +110,6 @@ test-support: | { return rtems_task_ident( name, node, id ); } - - #define TASK_ATTRIBUTES RTEMS_DEFAULT_ATTRIBUTES - - #define MAX_TLS_SIZE RTEMS_ALIGN_UP( 64, RTEMS_TASK_STORAGE_ALIGNMENT ) - - RTEMS_ALIGNED( RTEMS_TASK_STORAGE_ALIGNMENT ) - static char ClassicTaskIdentStorage[ - RTEMS_TASK_STORAGE_SIZE( - MAX_TLS_SIZE + TEST_MINIMUM_STACK_SIZE, - TASK_ATTRIBUTES - ) - ]; - - static const rtems_task_config ClassicTaskIdentConfig = { - .name = ClassicObjectIdentName, - .initial_priority = 1, - .storage_area = ClassicTaskIdentStorage, - .storage_size = sizeof( ClassicTaskIdentStorage ), - .maximum_thread_local_storage_size = MAX_TLS_SIZE, - .initial_modes = RTEMS_DEFAULT_MODES, - .attributes = TASK_ATTRIBUTES - }; test-target: testsuites/validation/tc-task-ident.c test-teardown: brief: null |