summaryrefslogtreecommitdiffstats
path: root/src/test/test-execute.c
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-12-22 13:28:51 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-12-22 15:32:28 +0100
commit4f276e97de67fa02337921703db7686725ac1827 (patch)
tree51fa34d2865b92adb90c9a3a208e7b9c1fa4c78d /src/test/test-execute.c
parentMerge pull request #30550 from yuwata/network-nexthop-cleanups-3 (diff)
downloadsystemd-4f276e97de67fa02337921703db7686725ac1827.tar.xz
systemd-4f276e97de67fa02337921703db7686725ac1827.zip
test: fix check for device in test-execute
The unit actually uses /dev/kmsg, not /dev/kvm Follow-up for ae7482b994e6a9bc8e
Diffstat (limited to 'src/test/test-execute.c')
-rw-r--r--src/test/test-execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index 88e4c8d4d9..6d51ad7b53 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -438,7 +438,7 @@ static void test_exec_privatedevices(Manager *m) {
test(m, "exec-privatedevices-yes.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
test(m, "exec-privatedevices-no.service", 0, CLD_EXITED);
- if (access("/dev/kvm", F_OK) >= 0)
+ if (access("/dev/kmsg", F_OK) >= 0)
test(m, "exec-privatedevices-bind.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
test(m, "exec-privatedevices-disabled-by-prefix.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);
test(m, "exec-privatedevices-yes-with-group.service", can_unshare ? 0 : MANAGER_IS_SYSTEM(m) ? EXIT_FAILURE : EXIT_NAMESPACE, CLD_EXITED);