1
0
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:
Marian Buschsieweke 2024-04-14 20:22:38 +02:00
parent 5adf1f1a28
commit 189bb29f76
No known key found for this signature in database
GPG Key ID: 77AA882EC78084E6

View File

@ -249,6 +249,8 @@ static void print_supported_frequencies(tim_t dev)
" %u: %" PRIu32 "\n",
(unsigned)(end - 1), timer_query_freqs(dev, end - 1));
}
expect(timer_query_freqs(dev, end) == 0);
}
int main(void)