diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-17 20:09:46 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 15:18:38 +0100 |
commit | 86c140d94da0597c4a4c4adbdbcf322ea50acbb9 (patch) | |
tree | f76582a8116baa603b45f9d48697f294d03f76c1 | |
parent | cd61676467a4e5aa3273820a7d58c7d1577db070 (diff) |
testsuites/validation/tc-task.c
-rw-r--r-- | testsuites/validation/tc-task.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuites/validation/tc-task.c b/testsuites/validation/tc-task.c index 40fc309b6c..1efe70bf04 100644 --- a/testsuites/validation/tc-task.c +++ b/testsuites/validation/tc-task.c @@ -90,6 +90,9 @@ * - Check that the all counter is equal to one. This shows that the * iteration stops when the visitor returns true. * + * - Assert that RTEMS_TASK_STORAGE_ALIGNMENT is a constant expression which + * evaluates to the expected value. + * * @{ */ @@ -193,6 +196,18 @@ static void RtemsTaskValTask_Action_2( void ) } /** + * @brief Assert that RTEMS_TASK_STORAGE_ALIGNMENT is a constant expression + * which evaluates to the expected value. + */ +static void RtemsTaskValTask_Action_3( void ) +{ + RTEMS_STATIC_ASSERT( + RTEMS_TASK_STORAGE_ALIGNMENT == CPU_STACK_ALIGNMENT, + STORAGE_ALIGNMENT + ); +} + +/** * @fn void T_case_body_RtemsTaskValTask( void ) */ T_TEST_CASE( RtemsTaskValTask ) @@ -202,6 +217,7 @@ T_TEST_CASE( RtemsTaskValTask ) RtemsTaskValTask_Action_0(); RtemsTaskValTask_Action_1(); RtemsTaskValTask_Action_2(); + RtemsTaskValTask_Action_3(); } /** @} */ |