diff --git a/src/test/test-varlink.c b/src/test/test-varlink.c index 53539bb2b8..679d235c78 100644 --- a/src/test/test-varlink.c +++ b/src/test/test-varlink.c @@ -54,7 +54,7 @@ static void test_fd(int fd, const void *buf, size_t n) { ssize_t m; m = read(fd, rbuf, n + 1); - + assert_se(m >= 0); assert_se(memcmp_nn(buf, n, rbuf, m) == 0); } @@ -75,6 +75,10 @@ static int method_passfd(Varlink *link, JsonVariant *parameters, VarlinkMethodFl log_info("%i %i %i", xx, yy, zz); + assert_se(xx >= 0); + assert_se(yy >= 0); + assert_se(zz >= 0); + test_fd(xx, "foo", 3); test_fd(yy, "bar", 3); test_fd(zz, "quux", 4);