test-fileio: fix confusing log output
authorLennart Poettering <lennart@poettering.net>
Fri, 21 May 2021 15:35:12 +0000 (17:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 May 2021 19:54:43 +0000 (21:54 +0200)
commit8461d6da35d290de0a2f7b8046bdc5d45ebc37f6
treebb64096a715783b510ee427271e042239b3b080d
parentfd3c6992d9fd0600483eb98ef3715e36ee371fba
test-fileio: fix confusing log output

Previously we'd pass all return values of read_virtual_file() to
log_info_errno() as error, but that makes no sense, given that we
sometimes return positive one with means "not truncated" but we'd show
as "Permission denied. Let's fix this, and log differently for sucess
and error.
src/test/test-fileio.c