diff --git a/test/integration-tests/TEST-55-OOMD/TEST-55-OOMD.units/TEST-55-OOMD-testbloat.service b/test/integration-tests/TEST-55-OOMD/TEST-55-OOMD.units/TEST-55-OOMD-testbloat.service index 70c87727c8..abb16b47f9 100644 --- a/test/integration-tests/TEST-55-OOMD/TEST-55-OOMD.units/TEST-55-OOMD-testbloat.service +++ b/test/integration-tests/TEST-55-OOMD/TEST-55-OOMD.units/TEST-55-OOMD-testbloat.service @@ -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 diff --git a/test/units/TEST-55-OOMD.sh b/test/units/TEST-55-OOMD.sh index 6679337858..5eb3eb3f1a 100755 --- a/test/units/TEST-55-OOMD.sh +++ b/test/units/TEST-55-OOMD.sh @@ -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() {