mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-12 12:10:30 +01:00
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:
parent
8d76734fb6
commit
a4ac2bebb3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue