zephyr/tests/drivers/spi/spi_loopback
Bjarki Arge Andreasen d265dadf1c tests: drivers: spi: spi_loopback: skip tests if invalid config
The spi_loopback_transceive() helper currently only prints a
message if a configuration is invalid, continuing the test
case as if it succeeded. This results in the test case using the
helper trying to validate the result from a spi transaction that
was skipped.

Fix this by explicitly skipping the test using the ztest
framework's ztest_test_skip() function, which skips the entire
test case.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-05-26 23:35:42 +02:00
..
boards tests: drivers: spi: spi_loopback: Test fast spi on slow GPIO port 2025-05-26 09:19:45 +02:00
dts/bindings
socs boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
src tests: drivers: spi: spi_loopback: skip tests if invalid config 2025-05-26 23:35:42 +02:00
sysbuild/vpr_launcher
CMakeLists.txt
Kconfig
overlay-gd32-spi-dma.conf
overlay-gd32-spi-interrupt.conf
overlay-max32-spi-dma.conf
overlay-max32-spi-rtio.conf
overlay-mcux-dspi-dma.conf
overlay-mcux-dspi-dma.overlay
overlay-mcux-flexio-spi.overlay
overlay-rpi-pico-pio.conf tests: drivers: spi: loopback: Add test for pico-spi-pio driver 2025-01-29 07:09:33 +01:00
overlay-sam-spi-dma.conf
overlay-sam-spi-dma.overlay
overlay-stm32-spi-16bits-dma-dt-nocache-mem.conf
overlay-stm32-spi-16bits-dma.conf
overlay-stm32-spi-16bits.conf
overlay-stm32-spi-16bits.overlay
overlay-stm32-spi-dma-dt-nocache-mem.conf
overlay-stm32-spi-dma.conf
overlay-stm32-spi-interrupt.conf
prj.conf
testcase.yaml tests: drivers: spi: spi_loopback: Test fast spi on slow GPIO port 2025-05-26 09:19:45 +02:00