oomd: add tests for oomd_fetch_cgroup_oom_preference
authorNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 19 Jul 2022 16:48:04 +0000 (12:48 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Fri, 26 Aug 2022 16:40:58 +0000 (12:40 -0400)
commit39f9eee882b2a12410db07a24b8538957abf358b
treea96312da87f8551218577177807d63d05b9b88e5
parent652a4efb66a845f6c5d48429aa4df0194a602aaa
oomd: add tests for oomd_fetch_cgroup_oom_preference

Add a new test function, test_oomd_fetch_cgroup_oom_preference, to test
the ManagedOOMPreference logic. For starters, cut the relevant tests out
of test_oomd_cgroup_context_acquire_and_insert, and add them to the new
function. Then, expand these tests to cover the new behavior.
src/oom/test-oomd-util.c