Tests: Watchdog: Update timing test

Skip test cases with unsupported timeout values.
pull/10777/head
Filip Jagodzinski 2018-05-25 14:26:12 +02:00 committed by Filip Jagodzinski
parent d634862a09
commit c5ad70c1e5
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ testcase_data current_case;
template<uint32_t timeout_ms, uint32_t delta_ms>
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) {