summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-11-02 22:59:41 +0100
committerDjalal Harouni <tixxdz@opendz.org>2016-11-03 08:37:15 +0100
commit2b9ac11ed96f2823972a77fc7cb0c32981218429 (patch)
treedd6924bcb4d86f3cd3035d2ceeaf4c75197658e3 /src/test
parentcdc5d5c55e58ff9eeb6b2258c9fc3a416ee8b53f (diff)
test: test DynamicUser= with a fixed user
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-execute.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index c369098500..aa5a9f1695 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -259,6 +259,11 @@ static void test_exec_supplementary_groups(Manager *m) {
test(m, "exec-supplementarygroups-multiple-groups-withuid.service", 0, CLD_EXITED);
}
+static void test_exec_dynamic_user(Manager *m) {
+ test(m, "exec-dynamicuser-fixeduser.service", 0, CLD_EXITED);
+ test(m, "exec-dynamicuser-fixeduser-one-supplementarygroup.service", 0, CLD_EXITED);
+}
+
static void test_exec_environment(Manager *m) {
test(m, "exec-environment.service", 0, CLD_EXITED);
test(m, "exec-environment-multiple.service", 0, CLD_EXITED);
@@ -432,6 +437,7 @@ int main(int argc, char *argv[]) {
test_exec_user,
test_exec_group,
test_exec_supplementary_groups,
+ test_exec_dynamic_user,
test_exec_environment,
test_exec_environmentfile,
test_exec_passenvironment,