test-execute: add tests for OOMScoreAdjust

This commit is contained in:
Ronny Chevalier
2015-10-31 15:07:19 +01:00
parent 03bd70dd01
commit c388dfea5a
4 changed files with 22 additions and 0 deletions
@@ -0,0 +1,7 @@
[Unit]
Description=Test for OOMScoreAdjust
[Service]
ExecStart=/bin/bash -c 'c=$(cat /proc/self/oom_score_adj); echo $c; exit $(test $c -eq -100)'
OOMScoreAdjust=-100
Type=oneshot
@@ -0,0 +1,7 @@
[Unit]
Description=Test for OOMScoreAdjust
[Service]
ExecStart=/bin/bash -c 'c=$(cat /proc/self/oom_score_adj); echo $c; exit $(test $c -eq 100)'
OOMScoreAdjust=100
Type=oneshot