Skip to content

Commit b95ceec

Browse files
fkjagodzinskiFilip Jagodzinski
authored andcommitted
Tests: Watchdog: Update timing test
Skip test cases with unsupported timeout values.
1 parent 8a61cbc commit b95ceec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TESTS/mbed_hal/watchdog_timing/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ testcase_data current_case;
5050
template<uint32_t timeout_ms, uint32_t delta_ms>
5151
void test_timing()
5252
{
53+
watchdog_features_t features = hal_watchdog_get_platform_features();
54+
if (timeout_ms > features.max_timeout) {
55+
TEST_IGNORE_MESSAGE("Requested timeout value not supported for this target -- ignoring test case.");
56+
return;
57+
}
58+
5359
// Phase 2. -- verify the test results.
5460
// Verify the heartbeat time span sent by host is within given delta.
5561
if (current_case.received_data != CASE_DATA_INVALID) {

0 commit comments

Comments
 (0)