mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-21 00:30:34 +00:00
fix(freertos): Incorrect assert in FreeRTOS port layer when not in ISR context
This commit fixes an issue where in the FreeRTOS port layer would cause the portASSERT_IF_IN_ISR() assert check to fail even when the system is not in an interrupt context.
This commit is contained in:
@@ -39,3 +39,13 @@ def test_task_notify_wait_too_high_index_fails(dut: Dut) -> None:
|
||||
dut.expect('assert failed: xTaskGenericNotifyWait', timeout=5)
|
||||
dut.expect('uxIndexToWait < [0-9]+', timeout=5)
|
||||
dut.expect_exact('Rebooting...')
|
||||
|
||||
|
||||
@pytest.mark.supported_targets
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', ['default'], indirect=True)
|
||||
def test_port_must_assert_in_isr(dut: Dut) -> None:
|
||||
dut.expect_exact('Press ENTER to see the list of tests.')
|
||||
dut.write('\"port must assert if in ISR context\"')
|
||||
dut.expect('assert failed: vPortAssertIfInISR', timeout=5)
|
||||
dut.expect_exact('Rebooting...')
|
||||
|
Reference in New Issue
Block a user