Skip to content

Commit 5ca258a

Browse files
nordic-piksanangl
authored andcommitted
[nrf fromlist] tests: drivers: spi: spi_loopback: skip timing test when COVERAGE
Skip checking timing expectation when COVERAGE is used. Coverage mode affect timing - making code slower, as additional operations are needed to gather coverage stats. Upstream PR #: 94927 Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 20d3002 commit 5ca258a

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ ZTEST(spi_loopback, test_spi_complete_multiple)
291291
/* same as the test_spi_complete_multiple test, but seeing if there is any unreasonable latency */
292292
ZTEST(spi_loopback, test_spi_complete_multiple_timed)
293293
{
294+
/* Do not check timing when coverage is enabled */
295+
Z_TEST_SKIP_IFDEF(CONFIG_COVERAGE);
296+
294297
struct spi_dt_spec *spec = loopback_specs[spec_idx];
295298
const struct spi_buf_set tx = spi_loopback_setup_xfer(tx_bufs_pool, 2,
296299
buffer_tx, BUF_SIZE,

0 commit comments

Comments
 (0)