summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2014-12-11 17:59:10 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2014-12-11 18:32:57 +0100
commit27c5347c8c38bafedb1b48a5d8587d13eadcb90b (patch)
treebe8d9043b6c712b0920d5f76afe5466716481694 /src
parent14b0295f916a7ce5262b0b5b8a3418ce474b9c69 (diff)
downloadsystemd-27c5347c8c38bafedb1b48a5d8587d13eadcb90b.tar.gz
test-execute: add tests for UMask directive
Diffstat (limited to 'src')
-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 60466f0d3f..91ccaf72b8 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -132,6 +132,11 @@ static void test_exec_environment(Manager *m) {
test(m, "exec-environment-empty.service", 0, CLD_EXITED);
}
+static void test_exec_umask(Manager *m) {
+ test(m, "exec-umask-default.service", 0, CLD_EXITED);
+ test(m, "exec-umask-0177.service", 0, CLD_EXITED);
+}
+
int main(int argc, char *argv[]) {
test_function_t tests[] = {
test_exec_workingdirectory,
@@ -144,6 +149,7 @@ int main(int argc, char *argv[]) {
test_exec_user,
test_exec_group,
test_exec_environment,
+ test_exec_umask,
NULL,
};
test_function_t *test = NULL;