remove TEST_FAIL() from TU_ASSERT, since it prevents we testing how stack response with failed assert
This commit is contained in:
parent
c7d7ac42d8
commit
838173efc3
|
@ -74,20 +74,13 @@
|
|||
// TU_VERIFY Helper
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
// Running unit tests
|
||||
#ifdef _UNITY_TEST_
|
||||
#define _TEST_FAILED() TEST_FAIL();
|
||||
#else
|
||||
#define _TEST_FAILED()
|
||||
#endif
|
||||
|
||||
#if CFG_TUSB_DEBUG
|
||||
#include <stdio.h>
|
||||
#define _MESS_ERR(_err) printf("%s %d: failed, error = %s\n", __func__, __LINE__, tusb_strerr[_err])
|
||||
#define _MESS_FAILED() do { printf("%s %d: assert failed\n", __func__, __LINE__); _TEST_FAILED() } while(0)
|
||||
#define _MESS_FAILED() printf("%s %d: assert failed\n", __func__, __LINE__)
|
||||
#else
|
||||
#define _MESS_ERR(_err)
|
||||
#define _MESS_FAILED() _TEST_FAILED()
|
||||
#define _MESS_FAILED()
|
||||
#endif
|
||||
|
||||
// Halt CPU (breakpoint) when hitting error, only apply for Cortex M3, M4, M7
|
||||
|
|
Loading…
Reference in New Issue