Skip to content

Commit 8530ba1

Browse files
nordic-pikrnordicjm
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit c67db3f)
1 parent 2d97877 commit 8530ba1

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
@@ -572,6 +572,13 @@ ZTEST(spi_loopback, test_spi_null_rx_buf_set)
572572
spi_loopback_transceive(spec, &tx, NULL);
573573
}
574574

575+
ZTEST(spi_loopback, test_spi_null_tx_rx_buf_set)
576+
{
577+
struct spi_dt_spec *spec = loopback_specs[spec_idx];
578+
579+
spi_loopback_transceive(spec, NULL, NULL);
580+
}
581+
575582
ZTEST(spi_loopback, test_nop_nil_bufs)
576583
{
577584
struct spi_dt_spec *spec = loopback_specs[spec_idx];

0 commit comments

Comments
 (0)