|
|
@@ -39,8 +39,7 @@ def test_heap_poisoning_qemu(dut: Dut) -> None:
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
|
|
-@pytest.mark.esp32
|
|
|
-@pytest.mark.esp32c6
|
|
|
+@pytest.mark.supported_targets
|
|
|
@pytest.mark.parametrize(
|
|
|
'config',
|
|
|
[
|
|
|
@@ -71,27 +70,21 @@ def test_heap(dut: Dut) -> None:
|
|
|
@pytest.mark.parametrize(
|
|
|
'config',
|
|
|
[
|
|
|
- 'abort_alloc_fail'
|
|
|
+ 'misc_options'
|
|
|
]
|
|
|
)
|
|
|
-def test_heap_abort_on_alloc_failure(dut: Dut) -> None:
|
|
|
+def test_heap_misc_options(dut: Dut) -> None:
|
|
|
dut.expect_exact('Press ENTER to see the list of tests')
|
|
|
- dut.write('"When enabled, allocation operation failure generates an abort"')
|
|
|
- dut.expect('Backtrace: ')
|
|
|
+ dut.write('"IRAM_8BIT capability test"')
|
|
|
+ dut.expect_unity_test_output()
|
|
|
|
|
|
+ dut.expect_exact("Enter next test, or 'enter' to see menu")
|
|
|
+ dut.write('"test allocation and free function hooks"')
|
|
|
+ dut.expect_unity_test_output()
|
|
|
|
|
|
-@pytest.mark.generic
|
|
|
-@pytest.mark.esp32
|
|
|
-@pytest.mark.parametrize(
|
|
|
- 'config',
|
|
|
- [
|
|
|
- '8bit_access'
|
|
|
- ]
|
|
|
-)
|
|
|
-def test_heap_8bit_access(dut: Dut) -> None:
|
|
|
- dut.expect_exact('Press ENTER to see the list of tests')
|
|
|
- dut.write('"IRAM_8BIT capability test"')
|
|
|
- dut.expect_unity_test_output(timeout=300)
|
|
|
+ dut.expect_exact("Enter next test, or 'enter' to see menu")
|
|
|
+ dut.write('"When enabled, allocation operation failure generates an abort"')
|
|
|
+ dut.expect('Backtrace: ')
|
|
|
|
|
|
|
|
|
@pytest.mark.generic
|
|
|
@@ -134,17 +127,3 @@ def test_memory_protection(dut: Dut) -> None:
|
|
|
dut.expect_exact('Press ENTER to see the list of tests')
|
|
|
dut.write('[heap][mem_prot]')
|
|
|
dut.expect_unity_test_output(timeout=300)
|
|
|
-
|
|
|
-
|
|
|
-@pytest.mark.generic
|
|
|
-@pytest.mark.esp32
|
|
|
-@pytest.mark.parametrize(
|
|
|
- 'config',
|
|
|
- [
|
|
|
- 'func_hooks'
|
|
|
- ]
|
|
|
-)
|
|
|
-def test_heap_func_hooks(dut: Dut) -> None:
|
|
|
- dut.expect_exact('Press ENTER to see the list of tests')
|
|
|
- dut.write('"test allocation and free function hooks"')
|
|
|
- dut.expect_unity_test_output(timeout=300)
|