mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
Merge branch 'bugfix/remove_wdt_both_cpus_test_v5.0' into 'release/v5.0'
test(panic): remove WDT both CPU test (v5.0) See merge request espressif/esp-idf!36624
This commit is contained in:
commit
2260b66eb1
@ -26,7 +26,6 @@ void test_task_wdt_cpu0(void);
|
|||||||
|
|
||||||
#if !CONFIG_FREERTOS_UNICORE
|
#if !CONFIG_FREERTOS_UNICORE
|
||||||
void test_task_wdt_cpu1(void);
|
void test_task_wdt_cpu1(void);
|
||||||
void test_task_wdt_both_cpus(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void test_storeprohibited(void);
|
void test_storeprohibited(void);
|
||||||
|
@ -84,7 +84,6 @@ void app_main(void)
|
|||||||
HANDLE_TEST(test_name, test_task_wdt_cpu0);
|
HANDLE_TEST(test_name, test_task_wdt_cpu0);
|
||||||
#if !CONFIG_FREERTOS_UNICORE
|
#if !CONFIG_FREERTOS_UNICORE
|
||||||
HANDLE_TEST(test_name, test_task_wdt_cpu1);
|
HANDLE_TEST(test_name, test_task_wdt_cpu1);
|
||||||
HANDLE_TEST(test_name, test_task_wdt_both_cpus);
|
|
||||||
#endif
|
#endif
|
||||||
HANDLE_TEST(test_name, test_storeprohibited);
|
HANDLE_TEST(test_name, test_storeprohibited);
|
||||||
HANDLE_TEST(test_name, test_cache_error);
|
HANDLE_TEST(test_name, test_cache_error);
|
||||||
|
@ -76,16 +76,6 @@ void test_task_wdt_cpu1(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_task_wdt_both_cpus(void)
|
|
||||||
{
|
|
||||||
xTaskCreatePinnedToCore(infinite_loop, "Infinite loop", 1024, NULL, 4, NULL, 1);
|
|
||||||
/* Give some time to the task on CPU 1 to be scheduled */
|
|
||||||
vTaskDelay(1);
|
|
||||||
xTaskCreatePinnedToCore(infinite_loop, "Infinite loop", 1024, NULL, 4, NULL, 0);
|
|
||||||
while (true) {
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void __attribute__((no_sanitize_undefined)) test_storeprohibited(void)
|
void __attribute__((no_sanitize_undefined)) test_storeprohibited(void)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
from typing import List, Optional
|
from typing import List
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@ -113,35 +113,6 @@ def test_task_wdt_cpu1(dut: PanicTestDut, config: str, test_func_name: str) -> N
|
|||||||
common_test(dut, config)
|
common_test(dut, config)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('config', CONFIGS_ESP32, indirect=True)
|
|
||||||
@pytest.mark.generic
|
|
||||||
def test_task_wdt_both_cpus(dut: PanicTestDut, config: str, test_func_name: str) -> None:
|
|
||||||
dut.expect_test_func_name(test_func_name)
|
|
||||||
dut.expect_exact(
|
|
||||||
'Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:'
|
|
||||||
)
|
|
||||||
dut.expect_exact('CPU 0: Infinite loop')
|
|
||||||
dut.expect_exact('CPU 1: Infinite loop')
|
|
||||||
dut.expect_none('register dump:')
|
|
||||||
dut.expect_exact('Print CPU 0 (current core) backtrace')
|
|
||||||
dut.expect_backtrace()
|
|
||||||
dut.expect_exact('Print CPU 1 backtrace')
|
|
||||||
dut.expect_backtrace()
|
|
||||||
dut.expect_elf_sha256()
|
|
||||||
dut.expect_none('Guru Meditation')
|
|
||||||
|
|
||||||
if config == 'gdbstub':
|
|
||||||
common_test(
|
|
||||||
dut,
|
|
||||||
config,
|
|
||||||
expected_backtrace=[
|
|
||||||
'infinite_loop'
|
|
||||||
],
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
common_test(dut, config)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_int_wdt(
|
def test_int_wdt(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user