From 8a2bf482935b6f96f355ca278604c22ed2a5c404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20G=C5=82=C4=85b?= Date: Tue, 11 Feb 2025 11:45:14 +0100 Subject: [PATCH] [nrf fromtree] tests: drivers: watchodg: Enable wdt_error_cases on nRF5340dk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable wdt_error_cases test on nRF5340dk. Define valid test configuration for that target (reuse from nRF54H/nRF54L). Add target to the platform_allow. Signed-off-by: Sebastian Głąb (cherry picked from commit c4a817971db94eb65d2a58332ba3136aa13b0dc5) --- tests/drivers/watchdog/wdt_error_cases/src/main.c | 4 ++-- tests/drivers/watchdog/wdt_error_cases/testcase.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/drivers/watchdog/wdt_error_cases/src/main.c b/tests/drivers/watchdog/wdt_error_cases/src/main.c index 990b2b52c98..935d8dd95a0 100644 --- a/tests/drivers/watchdog/wdt_error_cases/src/main.c +++ b/tests/drivers/watchdog/wdt_error_cases/src/main.c @@ -42,8 +42,8 @@ #define DEFAULT_WINDOW_MIN (0U) /* Align tests to the specific target: */ -#if defined(CONFIG_SOC_SERIES_NRF54LX) || defined(CONFIG_SOC_NRF54H20) || \ - defined(CONFIG_SOC_NRF9280) +#if defined(CONFIG_SOC_SERIES_NRF53X) || defined(CONFIG_SOC_SERIES_NRF54LX) || \ + defined(CONFIG_SOC_NRF54H20) || defined(CONFIG_SOC_NRF9280) #define WDT_TEST_FLAGS \ (WDT_DISABLE_SUPPORTED | WDT_FLAG_RESET_SOC_SUPPORTED | \ WDT_FLAG_ONLY_ONE_TIMEOUT_VALUE_SUPPORTED | WDT_OPT_PAUSE_IN_SLEEP_SUPPORTED | \ diff --git a/tests/drivers/watchdog/wdt_error_cases/testcase.yaml b/tests/drivers/watchdog/wdt_error_cases/testcase.yaml index e417cc16e45..7b19a804fb3 100644 --- a/tests/drivers/watchdog/wdt_error_cases/testcase.yaml +++ b/tests/drivers/watchdog/wdt_error_cases/testcase.yaml @@ -8,6 +8,7 @@ common: tests: drivers.watchdog.wdt_error_cases: platform_allow: + - nrf5340dk/nrf5340/cpuapp - nrf54l15dk/nrf54l15/cpuapp - nrf54l20pdk/nrf54l20/cpuapp - nrf54h20dk/nrf54h20/cpuapp