Commit f2d1b348 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

test: ensure we write something during litest_sendfile

This mostly shuts up coverity about potentially using a negative size to
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 3b6cb471
Pipeline #3094 passed with stages
in 6 minutes and 49 seconds
......@@ -1092,6 +1092,7 @@ litest_send_file(int sock, int fd)
char buf[40960];
int n = read(fd, buf, 40960);
litest_assert_int_gt(n, 0);
return write(sock, buf, n);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment