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:
Reto Schneider 2024-05-02 15:52:25 +02:00 committed by Henrik Brix Andersen
commit cba18a5943

View file

@ -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);