From dc86399ccc4946ffde167f8de4aeaba84dd2dfd5 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 18 Sep 2023 21:52:07 +0200 Subject: [PATCH] tests: allow 4 MiB RSS glibc keeps getting bigger. Fixes https://github.com/rfjakob/earlyoom/issues/296 --- testsuite_cli_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite_cli_test.go b/testsuite_cli_test.go index bbb2d3b..db6fc2e 100644 --- a/testsuite_cli_test.go +++ b/testsuite_cli_test.go @@ -63,7 +63,8 @@ func parseMeminfo() (memTotal int64, swapTotal int64) { // earlyoom RSS should never be above 1 MiB, // but on some systems, it is (due to glibc?). // https://github.com/rfjakob/earlyoom/issues/221 -const rssMaxKiB = 2048 +// https://github.com/rfjakob/earlyoom/issues/296 +const rssMaxKiB = 4096 func TestCli(t *testing.T) { memTotal, swapTotal := parseMeminfo()