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>
This commit is contained in:
parent
23ca74b756
commit
cba18a5943
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ static int test_loop_suspend_resume(const struct device *dma)
|
|||
done = 1;
|
||||
TC_PRINT("suspend not supported\n");
|
||||
dma_stop(dma, chan_id);
|
||||
return TC_PASS;
|
||||
ztest_test_skip();
|
||||
return TC_SKIP;
|
||||
}
|
||||
tc = transfer_count;
|
||||
irq_unlock(irq_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue