]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: skip several test cases when running in chroot
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Sep 2025 06:15:02 +0000 (15:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Sep 2025 13:20:42 +0000 (22:20 +0900)
commit6a616e62ad43fb52eacf083508253aeb9f57da5d
tree278ed764f3d0a6979190eea97362fc444d03b2de
parent2ff79a81a8dd5f3222d2be44f0d8c3b774b765d8
test: skip several test cases when running in chroot

When we are running in chroot, safe_fork() with FORK_MOUNTNS_SLAVE fails
with the following eror:
```
Failed to set mount propagation to MS_SLAVE for all mounts: Invalid argument
```
Let's skip the test cases when we are running in chroot.
src/libsystemd/sd-device/test-sd-device.c
src/test/test-execute.c
src/test/test-mount-util.c
src/test/test-mountpoint-util.c