summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-17 20:09:46 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-11-19 08:44:24 +0100
commit468bd2a3a908878d57d2fd89f06b548f786c9468 (patch)
treec32a941107d93dcd1fc53ca757fd52d60443c42a
parentfa37b2adb1311d7f593dcad1c0e5531074a2200b (diff)
testsuites/validation/tc-task.c
-rw-r--r--testsuites/validation/tc-task.c16
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();
}
/** @} */