Skip to content

Commit c67db3f

Browse files
nordic-pikrkartben
authored andcommitted
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 453d236 commit c67db3f

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

573+
ZTEST(spi_loopback, test_spi_null_tx_rx_buf_set)
574+
{
575+
struct spi_dt_spec *spec = loopback_specs[spec_idx];
576+
577+
spi_loopback_transceive(spec, NULL, NULL);
578+
}
579+
573580
ZTEST(spi_loopback, test_nop_nil_bufs)
574581
{
575582
struct spi_dt_spec *spec = loopback_specs[spec_idx];

0 commit comments

Comments
 (0)