mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-20 08:24:41 +00:00
feat(freertos): make num of task notifications configurable
Closes https://github.com/espressif/esp-idf/issues/9349
This commit is contained in:
@@ -21,3 +21,25 @@ def test_freertos(dut: Dut) -> None:
|
||||
dut.write('![ignore]')
|
||||
# All of the FreeRTOS tests combined take > 60s to run. So we use a 120s timeout
|
||||
dut.expect_unity_test_output(timeout=120)
|
||||
|
||||
|
||||
@pytest.mark.supported_targets
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', ['freertos_options'], indirect=True)
|
||||
def test_task_notify_too_high_index_fails(dut: Dut) -> None:
|
||||
dut.expect_exact('Press ENTER to see the list of tests.')
|
||||
dut.write('\"Notify too high index fails\"')
|
||||
dut.expect('assert failed: xTaskGenericNotify', timeout=5)
|
||||
dut.expect('uxIndexToNotify < [0-9]+')
|
||||
dut.expect_exact('Rebooting...')
|
||||
|
||||
|
||||
@pytest.mark.supported_targets
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', ['freertos_options'], indirect=True)
|
||||
def test_task_notify_wait_too_high_index_fails(dut: Dut) -> None:
|
||||
dut.expect_exact('Press ENTER to see the list of tests.')
|
||||
dut.write('\"Notify Wait too high index fails\"')
|
||||
dut.expect('assert failed: xTaskGenericNotifyWait', timeout=5)
|
||||
dut.expect('uxIndexToWait < [0-9]+', timeout=5)
|
||||
dut.expect_exact('Rebooting...')
|
||||
|
Reference in New Issue
Block a user