test: extend sendfile from 4kB to 40kB

The file is already larger than 4k, so we ended up truncating the file for the
tests. This went unnoticed until recent additions that ended up truncating it
halfway through an assignment.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-12-11 15:34:50 +10:00
parent 8d76734fb6
commit a4ac2bebb3

View file

@ -956,7 +956,7 @@ litest_copy_file(const char *dest, const char *src, const char *header)
in = open(src, O_RDONLY);
litest_assert_int_gt(in, -1);
/* lazy, just check for error and empty file copy */
litest_assert_int_gt(sendfile(out, in, NULL, 4096), 0);
litest_assert_int_gt(sendfile(out, in, NULL, 40960), 0);
close(out);
close(in);
}