diff --git a/components/heap/test_apps/heap_tests/main/test_diram.c b/components/heap/test_apps/heap_tests/main/test_diram.c index c3db5e7c81..c6cd33c2de 100644 --- a/components/heap/test_apps/heap_tests/main/test_diram.c +++ b/components/heap/test_apps/heap_tests/main/test_diram.c @@ -43,7 +43,7 @@ static void *malloc_block_diram(uint32_t caps) return result; } -TEST_CASE("Allocate D/IRAM as DRAM", "[heap]") +TEST_CASE("Allocate D/IRAM as DRAM", "[heap][qemu-ignore]") { uint32_t *dram = malloc_block_diram(MALLOC_CAP_8BIT | MALLOC_CAP_INTERNAL); @@ -61,7 +61,7 @@ TEST_CASE("Allocate D/IRAM as DRAM", "[heap]") free(dram); } -TEST_CASE("Allocate D/IRAM as IRAM", "[heap]") +TEST_CASE("Allocate D/IRAM as IRAM", "[heap][qemu-ignore]") { uint32_t *iram = malloc_block_diram(MALLOC_CAP_EXEC); diff --git a/components/heap/test_apps/heap_tests/pytest_heap.py b/components/heap/test_apps/heap_tests/pytest_heap.py index a537289611..1c51d22fd4 100644 --- a/components/heap/test_apps/heap_tests/pytest_heap.py +++ b/components/heap/test_apps/heap_tests/pytest_heap.py @@ -7,6 +7,7 @@ from pytest_embedded import Dut @pytest.mark.generic @pytest.mark.supported_targets +@pytest.mark.nightly_run @pytest.mark.parametrize( 'config', [ @@ -19,6 +20,24 @@ def test_heap_poisoning(dut: Dut) -> None: dut.run_all_single_board_cases() +@pytest.mark.esp32 +@pytest.mark.esp32c3 +@pytest.mark.host_test +@pytest.mark.qemu +@pytest.mark.parametrize( + 'config, embedded_services', + [ + ('no_poisoning', 'idf,qemu'), + ('light_poisoning', 'idf,qemu'), + ('comprehensive_poisoning', 'idf,qemu') + ] +) +def test_heap_poisoning_qemu(dut: Dut) -> None: + for case in dut.test_menu: + if 'qemu-ignore' not in case.groups and not case.is_ignored and case.type == 'normal': + dut._run_normal_case(case) + + @pytest.mark.generic @pytest.mark.esp32 @pytest.mark.esp32c6