Diff between 614d6630271584a29c3de5f9e705bd4af656a5f8 and 74206678a97bfa23ab6f8a9966bc88e798031e3c

Changed Files

File Additions Deletions Status
src/shared/tester.c +5 -1 modified
src/shared/tester.h +2 -0 modified

Full Patch

diff --git a/src/shared/tester.c b/src/shared/tester.c
index 1feaba4..34f8075 100644
--- a/src/shared/tester.c
+++ b/src/shared/tester.c
@@ -914,8 +914,12 @@ static bool test_io_send(struct io *io, void *user_data)
 
 	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;
 }
diff --git a/src/shared/tester.h b/src/shared/tester.h
index 4961018..16f4102 100644
--- a/src/shared/tester.h
+++ b/src/shared/tester.h
@@ -21,6 +21,8 @@
 		.iov_len = sizeof(data(args)), \
 	}
 
+#define IOV_NULL {}
+
 void tester_init(int *argc, char ***argv);
 int tester_run(void);