mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-25 18:57:01 +08:00
Fix spelling in message_buffer_utest.c
This commit is contained in:

committed by
Paul Bartell

parent
308739464b
commit
58b1f9b27d
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Ticks to wait from tests if the message buffer is full while sending data or
|
* @brief Ticks to wait from tests if the message buffer is full while sending data or
|
||||||
* below trigger level while receiveing data.
|
* below trigger level while receiving data.
|
||||||
*/
|
*/
|
||||||
#define TEST_MESSAGE_BUFFER_WAIT_TICKS ( 1000U )
|
#define TEST_MESSAGE_BUFFER_WAIT_TICKS ( 1000U )
|
||||||
|
|
||||||
@ -79,9 +79,9 @@
|
|||||||
#define configASSERT_E 0xAA101
|
#define configASSERT_E 0xAA101
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Expect a configASSERT from the funciton called.
|
* @brief Expect a configASSERT from the function called.
|
||||||
* Break out of the called function when this occurs.
|
* Break out of the called function when this occurs.
|
||||||
* @details Use this macro when the call passsed in as a parameter is expected
|
* @details Use this macro when the call passed in as a parameter is expected
|
||||||
* to cause invalid memory access.
|
* to cause invalid memory access.
|
||||||
*/
|
*/
|
||||||
#define EXPECT_ASSERT_BREAK( call ) \
|
#define EXPECT_ASSERT_BREAK( call ) \
|
||||||
@ -95,7 +95,9 @@
|
|||||||
TEST_FAIL(); \
|
TEST_FAIL(); \
|
||||||
} \
|
} \
|
||||||
Catch( e ) \
|
Catch( e ) \
|
||||||
|
{ \
|
||||||
TEST_ASSERT_EQUAL( configASSERT_E, e ); \
|
TEST_ASSERT_EQUAL( configASSERT_E, e ); \
|
||||||
|
} \
|
||||||
} while ( 0 )
|
} while ( 0 )
|
||||||
|
|
||||||
/* ============================ GLOBAL VARIABLES =========================== */
|
/* ============================ GLOBAL VARIABLES =========================== */
|
||||||
@ -360,7 +362,7 @@ void test_xMessageBufferCreate_zero_size( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Should assert if the size passed is less than the minimum size requried to store metadata size.
|
* @brief Should assert if the size passed is less than the minimum size required to store metadata size.
|
||||||
*/
|
*/
|
||||||
void test_xMessageBufferCreate_invalid_size( void )
|
void test_xMessageBufferCreate_invalid_size( void )
|
||||||
{
|
{
|
||||||
@ -422,7 +424,7 @@ void test_xMessageBufferCreateStatic_null_struct( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Validates message buffer create assert if the size passed is less than the minimum size requried to store metadata size.
|
* @brief Validates message buffer create assert if the size passed is less than the minimum size required to store metadata size.
|
||||||
*/
|
*/
|
||||||
void test_xMessageBufferCreateStatic_invalid_size( void )
|
void test_xMessageBufferCreateStatic_invalid_size( void )
|
||||||
{
|
{
|
||||||
@ -650,7 +652,7 @@ void test_xMessageBufferReceive_null_input_message( void )
|
|||||||
xMessageBuffer = xMessageBufferCreate( TEST_MESSAGE_BUFFER_SIZE );
|
xMessageBuffer = xMessageBufferCreate( TEST_MESSAGE_BUFFER_SIZE );
|
||||||
TEST_ASSERT_NOT_NULL( xMessageBuffer );
|
TEST_ASSERT_NOT_NULL( xMessageBuffer );
|
||||||
|
|
||||||
/* Should assert if a null input mssage is passed. */
|
/* Should assert if a null input message is passed. */
|
||||||
EXPECT_ASSERT_BREAK( ( void ) xMessageBufferReceive( xMessageBuffer, NULL, TEST_MAX_MESSAGE_SIZE, TEST_MESSAGE_BUFFER_WAIT_TICKS ) );
|
EXPECT_ASSERT_BREAK( ( void ) xMessageBufferReceive( xMessageBuffer, NULL, TEST_MAX_MESSAGE_SIZE, TEST_MESSAGE_BUFFER_WAIT_TICKS ) );
|
||||||
|
|
||||||
validate_and_clear_assertions();
|
validate_and_clear_assertions();
|
||||||
|
Reference in New Issue
Block a user