1 #include_next <setjmp.h>
2 #include "esp_debug_helpers.h"
3 
4 /*
5  * This is the middle layer of setjmp to be used with the unity.
6  */
7 
8 /** Insert backtrace before longjmp (TEST_ABORT).
9  *
10  * Currently we only do long jump before test is ignored or failed.
11  * If this is also called when test pass, we may need to add some check before
12  * backtrace is called.
13  */
14 #define longjmp(buf, val) do {esp_backtrace_print(100); longjmp(buf, val);} while(0)
15