mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/periph/timer: also test for idx out of range
Also test that `timer_query_freqs()` for an index out of range does return 0, as stated by the doc.
This commit is contained in:
parent
5adf1f1a28
commit
189bb29f76
@ -249,6 +249,8 @@ static void print_supported_frequencies(tim_t dev)
|
|||||||
" %u: %" PRIu32 "\n",
|
" %u: %" PRIu32 "\n",
|
||||||
(unsigned)(end - 1), timer_query_freqs(dev, end - 1));
|
(unsigned)(end - 1), timer_query_freqs(dev, end - 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expect(timer_query_freqs(dev, end) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user