From a4ac2bebb310ded75707860f942aea73a9a7cc5f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 11 Dec 2015 15:34:50 +1000 Subject: [PATCH] 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 --- test/litest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/litest.c b/test/litest.c index 52679df4..fc188b6a 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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); }