mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-04 14:26:31 +02:00
IDF release/v4.0 08219f3cf
This commit is contained in:
14
tools/sdk/include/unity/priv/setjmp.h
Normal file
14
tools/sdk/include/unity/priv/setjmp.h
Normal file
@ -0,0 +1,14 @@
|
||||
#include_next <setjmp.h>
|
||||
#include "esp_debug_helpers.h"
|
||||
|
||||
/*
|
||||
* This is the middle layer of setjmp to be used with the unity.
|
||||
*/
|
||||
|
||||
/** Insert backtrace before longjmp (TEST_ABORT).
|
||||
*
|
||||
* Currently we only do long jump before test is ignored or failed.
|
||||
* If this is also called when test pass, we may need to add some check before
|
||||
* backtrace is called.
|
||||
*/
|
||||
#define longjmp(buf, val) do {esp_backtrace_print(100); longjmp(buf, val);} while(0)
|
Reference in New Issue
Block a user