From 937e82cb7d82dbdbd287d82f4708f15d6032eb9f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 17 Jun 2023 00:07:32 +0100 Subject: [PATCH] TEST-55-OOMD: use 'stress' to create high pressure The test fails on my machine, running Debian stable, because testsuite-55-testbloat.service just swaps and never goes over the limit, so it's not killed. Use 'stress' instead which seems to be able to overwhelm the swap too. --- test/TEST-55-OOMD/test.sh | 2 ++ test/units/testsuite-55-slowgrowth.sh | 40 ----------------------- test/units/testsuite-55-testbloat.service | 6 ++-- test/units/testsuite-55-testmunch.service | 4 +-- test/units/testsuite-55.sh | 3 ++ 5 files changed, 10 insertions(+), 45 deletions(-) delete mode 100755 test/units/testsuite-55-slowgrowth.sh diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index c6dc92c050f..723e80d1158 100755 --- a/test/TEST-55-OOMD/test.sh +++ b/test/TEST-55-OOMD/test.sh @@ -14,6 +14,8 @@ test_append_files() { mkswap "${LOOPDEV:?}p2" image_install swapon swapoff + inst_binary stress + cat >>"${initdir:?}/etc/fstab" <