]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-fileio: test read_virtual_file() with more files from /proc 20763/head
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Sep 2021 09:31:52 +0000 (11:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 16 Sep 2021 10:23:32 +0000 (12:23 +0200)
commitf3b751220bb842ce22a4f607d817f481f0961d40
tree6019b26abad176cb84765d1acdff5bed5d310e00
parent00bd9a4a82ed57bc0c7f158da4564fc1eab808b4
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
src/test/test-fileio.c