chiark / gitweb /
tests: add test-execute
[elogind.git] / test / exec-privatedevices-yes.service
diff --git a/test/exec-privatedevices-yes.service b/test/exec-privatedevices-yes.service
new file mode 100644 (file)
index 0000000..85b3f4f
--- /dev/null
@@ -0,0 +1,7 @@
+[Unit]
+Description=Test for PrivateDev=yes
+
+[Service]
+ExecStart=/bin/sh -c 'exit $(test ! -c /dev/mem)'
+Type=oneshot
+PrivateDevices=yes