summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-10-30 17:09:22 +0100
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-10-31 15:07:19 +0100
commitc388dfea5a9de5771283fbf0f5ebc5a45c895b79 (patch)
treeb7e78dacb02a8a7b57148dfca37004a3dab0bd96 /src
parent03bd70dd01c61c7a4b1e17d4b7235bab68c1ebd1 (diff)
test-execute: add tests for OOMScoreAdjust
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 5898b3fb71..d708878a4d 100644
--- a/src/test/test-execute.c
+++ b/src/test/test-execute.c
@@ -211,6 +211,11 @@ static void test_exec_privatenetwork(Manager *m) {
test(m, "exec-privatenetwork-yes.service", 0, CLD_EXITED);
}
+static void test_exec_oomscoreadjust(Manager *m) {
+ test(m, "exec-oomscoreadjust-positive.service", 0, CLD_EXITED);
+ test(m, "exec-oomscoreadjust-negative.service", 0, CLD_EXITED);
+}
+
int main(int argc, char *argv[]) {
test_function_t tests[] = {
test_exec_workingdirectory,
@@ -228,6 +233,7 @@ int main(int argc, char *argv[]) {
test_exec_umask,
test_exec_runtimedirectory,
test_exec_capabilityboundingset,
+ test_exec_oomscoreadjust,
NULL,
};
test_function_t *test = NULL;