This adds support for NULL PDUs which can be used to skip a round of
TX/RX.
g_assert_cmpint(len, ==, iov->iov_len);
- if (!test->iovcnt && test->io_complete_func)
+ if (!test->iovcnt && test->io_complete_func) {
test->io_complete_func(test->test_data);
+ } else if (test->iovcnt && !test->iov->iov_base) {
+ test_get_iov(test);
+ return test_io_send(io, user_data);
+ }
return false;
}
.iov_len = sizeof(data(args)), \
}
+#define IOV_NULL {}
+
void tester_init(int *argc, char ***argv);
int tester_run(void);