Skip to content

Commit 01ae182

Browse files
committed
tests: drivers: spi: spi_loopback: Add NULL spi_buf_set test
Add the test_spi_null_tx_rx_buf_set Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
1 parent fadb9c7 commit 01ae182

File tree

1 file changed

+7
-0
lines changed
  • tests/drivers/spi/spi_loopback/src

1 file changed

+7
-0
lines changed

tests/drivers/spi/spi_loopback/src/spi.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,13 @@ ZTEST(spi_loopback, test_spi_null_rx_buf_set)
555555
spi_loopback_transceive(spec, &tx, NULL);
556556
}
557557

558+
ZTEST(spi_loopback, test_spi_null_tx_rx_buf_set)
559+
{
560+
struct spi_dt_spec *spec = loopback_specs[spec_idx];
561+
562+
spi_loopback_transceive(spec, NULL, NULL);
563+
}
564+
558565
ZTEST(spi_loopback, test_nop_nil_bufs)
559566
{
560567
struct spi_dt_spec *spec = loopback_specs[spec_idx];

0 commit comments

Comments
 (0)