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-12-01 14:25:15 +0100
commitf3f012888267f971f49b56b22597f096ff66ed44 (patch)
tree89f6a4f513d8d74da1f83ba1d695087e53ff3552
parent85fd14c02a420609d4f79cab0591e01f7ed73c60 (diff)
testsuites/validation/tc-part.c
-rw-r--r--testsuites/validation/tc-part.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/testsuites/validation/tc-part.c b/testsuites/validation/tc-part.c
index 5ade8a1cdb..74f438d520 100644
--- a/testsuites/validation/tc-part.c
+++ b/testsuites/validation/tc-part.c
@@ -61,7 +61,8 @@
*
* @ingroup RTEMSTestSuiteTestsuitesValidation0
*
- * @brief Validates some functional requirements of the Partition Manager.
+ * @brief This test case collection provides validation test cases for
+ * requirements of the @ref RTEMSAPIClassicPart.
*
* This test case performs the following actions:
*
@@ -74,6 +75,9 @@
* - Return the three buffers in use to the partition and check that they can
* be obtained from the partition for use in parallel in FIFO order.
*
+ * - Assert that RTEMS_PARTITION_ALIGNMENT is a constant expression which
+ * evaluates to the expected value.
+ *
* @{
*/
@@ -167,6 +171,18 @@ static void RtemsPartValPart_Action_0( void )
}
/**
+ * @brief Assert that RTEMS_PARTITION_ALIGNMENT is a constant expression which
+ * evaluates to the expected value.
+ */
+static void RtemsPartValPart_Action_1( void )
+{
+ RTEMS_STATIC_ASSERT(
+ RTEMS_PARTITION_ALIGNMENT == CPU_SIZEOF_POINTER,
+ ALIGNMENT
+ );
+}
+
+/**
* @fn void T_case_body_RtemsPartValPart( void )
*/
T_TEST_CASE( RtemsPartValPart )
@@ -174,6 +190,7 @@ T_TEST_CASE( RtemsPartValPart )
T_plan( 22 );
RtemsPartValPart_Action_0();
+ RtemsPartValPart_Action_1();
}
/** @} */