TEST-55-OOMD: Verify that ExecStopPost= runs on oom-kill

This commit is contained in:
Daan De Meyer
2025-09-09 13:27:06 +02:00
committed by Luca Boccassi
parent f82d80da06
commit 5bf7438ff0
2 changed files with 4 additions and 0 deletions

View File

@@ -8,3 +8,4 @@ Description=Create a lot of memory pressure
MemoryHigh=3M
Slice=TEST-55-OOMD-workload.slice
ExecStart=stress-ng --timeout 3m --vm 10 --vm-bytes 200M --vm-keep
ExecStopPost=-touch /run/testbloat-exec-stop-post

View File

@@ -133,6 +133,9 @@ test_basic() {
testcase_basic_system() {
test_basic /TEST.slice/TEST-55.slice/TEST-55-OOMD.slice/TEST-55-OOMD-workload.slice
# Ensure ExecStopPost= runs on oom-kill.
test -f /run/testbloat-exec-stop-post
}
testcase_basic_user() {