heap: enable qemu tests

This commit is contained in:
Zim Kalinowski 2023-06-20 16:03:28 +02:00
parent 8f89372c2c
commit 2b4137d212
2 changed files with 21 additions and 2 deletions

View File

@ -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);

View File

@ -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