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-19 08:44:24 +0100 |
commit | fa37b2adb1311d7f593dcad1c0e5531074a2200b (patch) | |
tree | dcaff927bf4b1f159a70a495e91291115211ecaf | |
parent | c17d7416d47151ab5acba8a62126375e4044ce86 (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(); } /** @} */ |