summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2016-10-14 10:32:27 +0200
committerDjalal Harouni <tixxdz@opendz.org>2016-10-23 23:27:14 +0200
commit86b838eaa36814f1a9c02f3289328cd0ec42d1ff (patch)
tree9ffc1486455fd986874c4988a544701be149afbd /src/test
parent4d885bd326d958827d926512ecc5e0d21f6ad76b (diff)
test: Add simple test for supplementary groups
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-execute.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test-execute.c b/src/test/test-execute.c
index e8ff02adaf..cda035c6e7 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -218,6 +218,10 @@ static void test_exec_group(Manager *m) {
log_error_errno(errno, "Skipping test_exec_group, could not find nobody/nfsnobody group: %m");
}
+static void test_exec_supplementary_groups(Manager *m) {
+ test(m, "exec-supplementarygroups.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);
@@ -390,6 +394,7 @@ int main(int argc, char *argv[]) {
test_exec_systemcallerrornumber,
test_exec_user,
test_exec_group,
+ test_exec_supplementary_groups,
test_exec_environment,
test_exec_environmentfile,
test_exec_passenvironment,