Skip to content

Commit

Permalink
tests: spi_loopback: Use ZTest properly
Browse files Browse the repository at this point in the history
Instead of having a bunch of giant if conditions and just running
all the test cases from one actual ZTest case, convert all the test
cases into proper ZTest test cases.

Removing the returns is now required because otherwise there will be
compiler warnings, and they were never doing anything anyways in the
event of zassert fail. ZTest cases are meant to report pass or fail with
ztest paradigm, not with return values and log messages.

Also move the test of the spi lock/release to a separate test suite
since it is not really testing an actual bus transfer, but rather a
that a feature in the SPI API is respected.

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny committed Feb 27, 2025
1 parent ea7ffec commit c295186
Showing 1 changed file with 68 additions and 122 deletions.
Loading

0 comments on commit c295186

Please sign in to comment.