]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-stat-util: don't fail under chroot 19882/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Jun 2021 11:25:59 +0000 (13:25 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Jun 2021 05:40:53 +0000 (07:40 +0200)
commit51db8fdb9233555cf6d863cb3b2f51d3a6e7c0bc
tree844fbd7ab5d534a98d5a184cb0f9b725e125db8c
parentd8d0da1f19cd1db235851807c869e4667475b099
test-stat-util: don't fail under chroot

I wanted to see what is_path_read_only_fs() and is_path_temporary_fs() return
in a chroot, and various tests would fail. For most of our codebase, we can
assume that /proc and such are mounted, and it doesn't make sense to make the
tests work in a chroot. But let's do it here. (In general, it would be useful
for most stuff in src/basic/, since it's linked into libraries which might be
invoked in incorrectly set up environments and should not fail too badly.)
src/test/test-stat-util.c