diff options
Diffstat (limited to 'test/test-execute/exec-oomscoreadjust-negative.service')
-rw-r--r-- | test/test-execute/exec-oomscoreadjust-negative.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-execute/exec-oomscoreadjust-negative.service b/test/test-execute/exec-oomscoreadjust-negative.service index 63ab501c63..2234c53c3f 100644 --- a/test/test-execute/exec-oomscoreadjust-negative.service +++ b/test/test-execute/exec-oomscoreadjust-negative.service @@ -2,6 +2,6 @@ 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 +ExecStart=/bin/sh -x -c 'c=$$(cat /proc/self/oom_score_adj); test "$$c" -eq -100' Type=oneshot +OOMScoreAdjust=-100 |