Skip to content

Commit 18b3faa

Browse files
ubiedafabiobaltieri
authored andcommitted
tests: rtio: iodev: fix: Add missing early return when error occurs
It appears this had not been exposed as the testsuite does not exercise forcing errors for the IODEV. However, in the upcoming testcase for error-handling of multi-shot items, it will be required. Placed as standalone patch for the sake of clarity. Signed-off-by: Luis Ubieda <[email protected]>
1 parent d3628fc commit 18b3faa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/subsys/rtio/rtio_api/src/rtio_iodev_test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static void rtio_iodev_test_complete(struct rtio_iodev_test_data *data, int stat
6464
if (status < 0) {
6565
rtio_iodev_sqe_err(data->txn_head, status);
6666
rtio_iodev_test_next(data, true);
67+
return;
6768
}
6869

6970
data->txn_curr = rtio_txn_next(data->txn_curr);

0 commit comments

Comments
 (0)