From c5ad70c1e5ce060216419375c50350650b33488a Mon Sep 17 00:00:00 2001 From: Filip Jagodzinski Date: Fri, 25 May 2018 14:26:12 +0200 Subject: [PATCH] Tests: Watchdog: Update timing test Skip test cases with unsupported timeout values. --- TESTS/mbed_hal/watchdog_timing/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TESTS/mbed_hal/watchdog_timing/main.cpp b/TESTS/mbed_hal/watchdog_timing/main.cpp index 8e9d3940c3..19eab7d58f 100644 --- a/TESTS/mbed_hal/watchdog_timing/main.cpp +++ b/TESTS/mbed_hal/watchdog_timing/main.cpp @@ -50,6 +50,12 @@ testcase_data current_case; template void test_timing() { + watchdog_features_t features = hal_watchdog_get_platform_features(); + if (timeout_ms > features.max_timeout) { + TEST_IGNORE_MESSAGE("Requested timeout value not supported for this target -- ignoring test case."); + return; + } + // Phase 2. -- verify the test results. // Verify the heartbeat time span sent by host is within given delta. if (current_case.received_data != CASE_DATA_INVALID) {