/Zephyr-latest/tests/arch/arm/arm_hardfault_validation/src/ |
D | arm_hardfault.c | 14 static volatile int expected_reason = -1; variable 22 if (expected_reason == -1) { in k_sys_fatal_error_handler() 27 if (reason != expected_reason) { in k_sys_fatal_error_handler() 29 expected_reason); in k_sys_fatal_error_handler() 41 expected_reason = K_ERR_KERNEL_PANIC; in k_sys_fatal_error_handler() 46 expected_reason = -1; in k_sys_fatal_error_handler() 51 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST()
|
/Zephyr-latest/tests/kernel/fatal/message_capture/src/ |
D | main.c | 11 static volatile int expected_reason = -1; variable 19 if (expected_reason == -1) { in k_sys_fatal_error_handler() 25 if (reason != expected_reason) { in k_sys_fatal_error_handler() 27 expected_reason); in k_sys_fatal_error_handler() 34 expected_reason = -1; in k_sys_fatal_error_handler() 73 expected_reason = K_ERR_KERNEL_OOPS; in test_message_capture()
|
/Zephyr-latest/tests/kernel/fatal/no-multithreading/src/ |
D | main.c | 14 static ZTEST_DMEM volatile int expected_reason = -1; variable 21 if (reason != expected_reason) { in k_sys_fatal_error_handler() 22 TC_PRINT("Unexpected reason (exp: %d)\n", expected_reason); in k_sys_fatal_error_handler() 32 expected_reason = K_ERR_CPU_EXCEPTION; in entry_cpu_exception() 57 expected_reason = K_ERR_KERNEL_OOPS; in entry_oops() 69 expected_reason = K_ERR_KERNEL_PANIC; in entry_panic() 79 expected_reason = K_ERR_KERNEL_PANIC; in entry_zephyr_assert() 89 expected_reason = INT_MAX; in entry_arbitrary_reason() 101 expected_reason = -2; in entry_arbitrary_reason_negative()
|
/Zephyr-latest/tests/arch/arm/arm_interrupt/src/ |
D | arm_interrupt.c | 13 static volatile int expected_reason = -1; variable 95 if (expected_reason == -1) { in k_sys_fatal_error_handler() 100 if (reason != expected_reason) { in k_sys_fatal_error_handler() 102 expected_reason); in k_sys_fatal_error_handler() 113 expected_reason = -1; in k_sys_fatal_error_handler() 174 expected_reason = K_ERR_CPU_EXCEPTION; in ZTEST() 220 expected_reason = K_ERR_KERNEL_OOPS; in arm_isr_handler() 224 expected_reason = K_ERR_KERNEL_PANIC; in arm_isr_handler() 228 expected_reason = K_ERR_KERNEL_PANIC; in arm_isr_handler() 236 int reason = expected_reason; in arm_isr_handler() [all …]
|
/Zephyr-latest/tests/arch/arm/arm_no_multithreading/src/ |
D | main.c | 30 static unsigned int expected_reason; variable 43 if (expected_reason == -1) { in k_sys_fatal_error_handler() 48 if (reason != expected_reason) { in k_sys_fatal_error_handler() 50 expected_reason); in k_sys_fatal_error_handler() 54 expected_reason = -1; in k_sys_fatal_error_handler() 91 expected_reason = K_ERR_CPU_EXCEPTION; in test_main()
|
/Zephyr-latest/tests/kernel/fatal/exception/src/ |
D | main.c | 51 static ZTEST_DMEM volatile int expected_reason = -1; variable 57 if (expected_reason == -1) { in k_sys_fatal_error_handler() 69 if (reason != expected_reason) { in k_sys_fatal_error_handler() 71 expected_reason); in k_sys_fatal_error_handler() 76 expected_reason = -1; in k_sys_fatal_error_handler() 81 expected_reason = K_ERR_CPU_EXCEPTION; in entry_cpu_exception() 106 expected_reason = K_ERR_CPU_EXCEPTION; in entry_cpu_exception_extend() 139 expected_reason = K_ERR_KERNEL_OOPS; in entry_oops() 148 expected_reason = K_ERR_KERNEL_PANIC; in entry_panic() 157 expected_reason = K_ERR_KERNEL_PANIC; in entry_zephyr_assert() [all …]
|
/Zephyr-latest/tests/lib/mem_blocks/src/ |
D | main.c | 26 static ZTEST_DMEM volatile int expected_reason = -1; variable 32 if (expected_reason == -1) { in k_sys_fatal_error_handler() 37 if (reason != expected_reason) { in k_sys_fatal_error_handler() 39 expected_reason); in k_sys_fatal_error_handler() 43 expected_reason = -1; in k_sys_fatal_error_handler() 638 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST() 647 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST() 658 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST() 667 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST() 720 expected_reason = K_ERR_KERNEL_PANIC; in ZTEST() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/timeout/ |
D | main.c | 247 uint8_t expected_reason; in disconnected() local 252 expected_reason = BT_HCI_ERR_LOCALHOST_TERM_CONN; in disconnected() 256 expected_reason = BT_HCI_ERR_REMOTE_USER_TERM_CONN; in disconnected() 259 __ASSERT(expected_reason == reason, "Unexpected reason %u", reason); in disconnected()
|
/Zephyr-latest/tests/kernel/threads/dynamic_thread_stack/src/ |
D | main.c | 173 ZTEST_BMEM static volatile unsigned int expected_reason; variable 178 expected_reason = reason; in set_fault() 185 if (expected_reason == reason) { in k_sys_fatal_error_handler() 190 expected_reason); in k_sys_fatal_error_handler()
|
/Zephyr-latest/tests/kernel/mem_protect/userspace/src/ |
D | main.c | 54 ZTEST_BMEM static volatile unsigned int expected_reason; variable 75 expected_reason = reason; in set_fault() 84 if (expected_reason == reason) { in k_sys_fatal_error_handler() 89 expected_reason); in k_sys_fatal_error_handler() 717 expected_reason); in user_half() 964 expected_reason = expected; \
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_handlers.py | 532 expected_reason, argument 550 assert handler.instance.reason == expected_reason 553 missing_mock.assert_called_once_with(TwisterStatus.BLOCK, expected_reason) 1210 expected_reason, argument 1224 assert handler.instance.reason == expected_reason 1227 missing_mock.assert_called_with('blocked', expected_reason) 1387 expected_reason, argument 1496 if expected_reason: 1497 assert handler.instance.reason == expected_reason 1716 expected_reason, argument [all …]
|
D | test_testinstance.py | 320 def test_testinstance_add_missing_case_status(testinstance, reason, expected_reason): argument 334 assert testinstance.testcases[-1].reason == expected_reason
|
D | test_runner.py | 293 expected_reason, argument 359 assert cmake.instance.reason == expected_reason 426 expected_reason, argument 506 assert cmake.instance.reason == expected_reason 1498 expected_reason, argument 1556 assert pb.instance.reason == expected_reason
|
D | test_testplan.py | 1896 expected_reason argument 1913 assert instance.reason == expected_reason
|