summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-01 18:27:15 +0700
committerhathach <[email protected]>2019-11-01 18:27:15 +0700
commit838173efc34ab3c55e925176a378a47f9ba65e7e (patch)
treea8e22f3635b9a68aba0785696c135cf6085f22a2 /src
parentc7d7ac42d85ab70821ecdb6cb7fcb0c46694cb75 (diff)
remove TEST_FAIL() from TU_ASSERT, since it prevents we testing how stack response with failed assert
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_verify.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/common/tusb_verify.h b/src/common/tusb_verify.h
index 5ae3afc95..41364d055 100644
--- a/src/common/tusb_verify.h
+++ b/src/common/tusb_verify.h
@@ -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