Skip to content

Commit 801d5e0

Browse files
nordic-piksfabiobaltieri
authored andcommitted
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. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent 6fddc44 commit 801d5e0

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
@@ -295,6 +295,9 @@ ZTEST(spi_loopback, test_spi_complete_multiple)
295295
/* same as the test_spi_complete_multiple test, but seeing if there is any unreasonable latency */
296296
ZTEST(spi_loopback, test_spi_complete_multiple_timed)
297297
{
298+
/* Do not check timing when coverage is enabled */
299+
Z_TEST_SKIP_IFDEF(CONFIG_COVERAGE);
300+
298301
struct spi_dt_spec *spec = loopback_specs[spec_idx];
299302
const struct spi_buf_set tx = spi_loopback_setup_xfer(tx_bufs_pool, 2,
300303
buffer_tx, BUF_SIZE,

0 commit comments

Comments
 (0)