test: add test case for UnsetEnvironment=

This commit is contained in:
Lennart Poettering
2017-09-14 15:17:40 +02:00
parent 00819cc151
commit 42cc99d5ec
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -453,6 +453,10 @@ static void test_exec_read_only_path_suceed(Manager *m) {
test(m, "exec-read-only-path-succeed.service", 0, CLD_EXITED);
}
static void test_exec_unset_environment(Manager *m) {
test(m, "exec-unset-environment.service", 0, CLD_EXITED);
}
static int run_tests(UnitFileScope scope, const test_function_t *tests) {
const test_function_t *test = NULL;
Manager *m = NULL;
@@ -508,6 +512,7 @@ int main(int argc, char *argv[]) {
test_exec_ioschedulingclass,
test_exec_spec_interpolation,
test_exec_read_only_path_suceed,
test_exec_unset_environment,
NULL,
};
static const test_function_t system_tests[] = {