mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
test: add a (non-automated) case for backtraces with ROM functions
This commit is contained in:
parent
11caa6fcf2
commit
19636db724
@ -69,3 +69,15 @@ TEST_CASE("Test backtrace from interrupt watchdog timeout", "[reset_reason][rese
|
|||||||
backtrace_trigger_source = ACTION_INT_WDT;
|
backtrace_trigger_source = ACTION_INT_WDT;
|
||||||
recursive_func(RECUR_DEPTH, SW_ISR_LEVEL_1); //Trigger lvl 1 SW interrupt at max recursive depth
|
recursive_func(RECUR_DEPTH, SW_ISR_LEVEL_1); //Trigger lvl 1 SW interrupt at max recursive depth
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void write_char_crash(char c)
|
||||||
|
{
|
||||||
|
ets_write_char_uart(c);
|
||||||
|
*(char*) 0x00000001 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST_CASE("Test backtrace with a ROM function", "[reset_reason][reset=StoreProhibited,SW_CPU_RESET]")
|
||||||
|
{
|
||||||
|
ets_install_putc1(&write_char_crash);
|
||||||
|
ets_printf("foo");
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user