summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-09-25 19:50:25 +0200
committerDjalal Harouni <tixxdz@opendz.org>2016-09-27 09:24:46 +0200
commitcdfbd1fb26eb75fe6beca47dce7e5e348b077d97 (patch)
treead3ca0d54fbca6fad4d58ee47d0d69b972849466 /src/test
parentf78b36f016b5f3e6ce1dfbdfcb78ba227ff8ccac (diff)
test: make sure that {readonly|inaccessible|readwrite}paths disconnect mount propagation
Better safe.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-execute.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index aa8544e21a..8b4ff22495 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -144,6 +144,15 @@ static void test_exec_privatedevices_capabilities(Manager *m) {
static void test_exec_readonlypaths(Manager *m) {
test(m, "exec-readonlypaths.service", 0, CLD_EXITED);
+ test(m, "exec-readonlypaths-mount-propagation.service", 0, CLD_EXITED);
+}
+
+static void test_exec_readwritepaths(Manager *m) {
+ test(m, "exec-readwritepaths-mount-propagation.service", 0, CLD_EXITED);
+}
+
+static void test_exec_inaccessiblepaths(Manager *m) {
+ test(m, "exec-inaccessiblepaths-mount-propagation.service", 0, CLD_EXITED);
}
static void test_exec_systemcallfilter(Manager *m) {
@@ -360,6 +369,8 @@ int main(int argc, char *argv[]) {
test_exec_privatedevices,
test_exec_privatedevices_capabilities,
test_exec_readonlypaths,
+ test_exec_readwritepaths,
+ test_exec_inaccessiblepaths,
test_exec_privatenetwork,
test_exec_systemcallfilter,
test_exec_systemcallerrornumber,