mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Test: Mask unit test warning (#592)
* Test: Mask unit test warning * Fix Unit Test Bug * Unit Test: Add setters and getters for xMaskAssertAndAbort * Fix Warning * Update Makefile
This commit is contained in:
parent
459a6cbb4c
commit
5136a30399
5 changed files with 18 additions and 6 deletions
|
|
@ -68,8 +68,10 @@
|
|||
#define TICKS_TO_WAIT 10
|
||||
#define NUM_CALLS_TO_INTERCEPT TICKS_TO_WAIT / 2
|
||||
|
||||
/* =========================== FUNCTION PROTOTYPES ======================== */
|
||||
void setxMaskAssertAndAbort( bool mask );
|
||||
bool getxMaskAssertAndAbort( );
|
||||
/* ============================ GLOBAL VARIABLES =========================== */
|
||||
bool xMaskAssertAndAbort;
|
||||
|
||||
/* ================================= MACROS ================================ */
|
||||
|
||||
|
|
@ -82,7 +84,7 @@ bool xMaskAssertAndAbort;
|
|||
#define EXPECT_ASSERT_BREAK( call ) \
|
||||
do \
|
||||
{ \
|
||||
xMaskAssertAndAbort = true; \
|
||||
setxMaskAssertAndAbort( true ); \
|
||||
CEXCEPTION_T e = CEXCEPTION_NONE; \
|
||||
Try \
|
||||
{ \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue