Commit 18f4dfa
tests: counter: basic_api: relax counter_stop assertions
counter_stop() is not required to succeed on all hardware.
Free-running counters (e.g. OS Timer) correctly return -ENOTSUP.
Update the three call sites in the unit test to accept -ENOTSUP
as a valid outcome.
Signed-off-by: Jason Yu <zejiang.yu@nxp.com>1 parent f88842e commit 18f4dfa
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
596 | 597 | | |
597 | 598 | | |
598 | 599 | | |
599 | | - | |
| 600 | + | |
| 601 | + | |
600 | 602 | | |
601 | 603 | | |
602 | 604 | | |
| |||
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
875 | | - | |
| 877 | + | |
| 878 | + | |
876 | 879 | | |
877 | 880 | | |
878 | 881 | | |
| |||
0 commit comments