mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/heap-enable-qemu-tests' into 'master'
heap: enable qemu tests Closes IDF-7326 See merge request espressif/esp-idf!20999
This commit is contained in:
commit
f3a19a3eea
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user