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:
alfred gedeon 2021-05-27 16:26:31 -07:00 committed by GitHub
parent 459a6cbb4c
commit 5136a30399
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 6 deletions

View file

@ -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 \
{ \