test_panic.h 999 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. /* Utility functions */
  11. void die(const char* msg) __attribute__ ((noreturn));
  12. /* Functions causing an exception/panic in different ways */
  13. void test_abort(void);
  14. void test_abort_cache_disabled(void);
  15. void test_int_wdt(void);
  16. void test_task_wdt_cpu0(void);
  17. #if CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH && CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
  18. void test_panic_extram_stack(void);
  19. #endif
  20. #if !CONFIG_FREERTOS_UNICORE
  21. void test_task_wdt_cpu1(void);
  22. void test_task_wdt_both_cpus(void);
  23. #endif
  24. void test_storeprohibited(void);
  25. void test_cache_error(void);
  26. void test_int_wdt_cache_disabled(void);
  27. void test_stack_overflow(void);
  28. void test_illegal_instruction(void);
  29. void test_instr_fetch_prohibited(void);
  30. void test_ub(void);
  31. void test_assert(void);
  32. void test_assert_cache_disabled(void);
  33. #ifdef __cplusplus
  34. }
  35. #endif