fix(esp_driver_uart): always use heap_caps_malloc to malloc memory base on flags

This commit is contained in:
Song Ruo Jing
2023-11-22 19:19:42 +08:00
parent 6ad80f0332
commit ef281dff5a
4 changed files with 21 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import pytest
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32s3'], reason='skip due to duplication with test_uart_single_dev_psram')
@pytest.mark.generic
@pytest.mark.parametrize(
'config',
@@ -16,3 +17,17 @@ import pytest
)
def test_uart_single_dev(case_tester) -> None: # type: ignore
case_tester.run_all_normal_cases(reset=True)
@pytest.mark.esp32s3
@pytest.mark.octal_psram
@pytest.mark.parametrize(
'config',
[
'iram_safe',
'release',
],
indirect=True,
)
def test_uart_single_dev_psram(case_tester) -> None: # type: ignore
case_tester.run_all_normal_cases(reset=True)