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 | cd61676467a4e5aa3273820a7d58c7d1577db070 (patch) | |
tree | a76a690e9fc909d69aa840564c1ef52646e8dfd6 | |
parent | 3de133c2b06ea19a876b5c99d93ccd9f5d4988e0 (diff) |
testsuites/validation/tc-part.c
-rw-r--r-- | testsuites/validation/tc-part.c | 19 |
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(); } /** @} */ |