Skip to content

Commit cba18a5

Browse files
rettichschnidihenrikbrixandersen
authored andcommitted
tests: drivers: dma: loop transfer: Avoid fake pass
When the needed functionality is not available, its test should be skipped, not passed. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
1 parent 23ca74b commit cba18a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/drivers/dma/loop_transfer/src/test_dma_loop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ static int test_loop_suspend_resume(const struct device *dma)
252252
done = 1;
253253
TC_PRINT("suspend not supported\n");
254254
dma_stop(dma, chan_id);
255-
return TC_PASS;
255+
ztest_test_skip();
256+
return TC_SKIP;
256257
}
257258
tc = transfer_count;
258259
irq_unlock(irq_key);

0 commit comments

Comments
 (0)