test-fileio: test read_virtual_file() with more files from /proc
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Sep 2021 09:31:52 +0000 (11:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 15:04:40 +0000 (17:04 +0200)
commitdd6cb364bcc58b390671d4ee2ed7b30f4a5dced8
tree155f59e86227aebf0cc692fa8dcadab4885a956f
parentc9e0daf821b3e1e6504ca4c4e3a8b73513e28fa7
test-fileio: test read_virtual_file() with more files from /proc

i.e. let's pick some files we know are too large, or where struct stat's
.st_size is zero even though non-empty, and test read_virtual_file()
with that, to ensure things are handled sensibly. Goal is to ensure all
three major codepaths in read_virtual_file() are tested.

Prompted-by: #20743
(cherry picked from commit f3b751220bb842ce22a4f607d817f481f0961d40)
src/test/test-fileio.c