oomd: add unit test to repro #18926

This commit is contained in:
Anita Zhang
2021-03-08 14:36:24 -08:00
parent 79d5f00ad1
commit 399d80ba8c
+1
View File
@@ -150,6 +150,7 @@ static void test_oomd_cgroup_context_acquire_and_insert(void) {
assert_se(oomd_insert_cgroup_context(NULL, h1, cgroup) == 0);
c1 = hashmap_get(h1, cgroup);
assert_se(c1);
assert_se(oomd_insert_cgroup_context(NULL, h1, cgroup) == -EEXIST);
/* make sure certain values from h1 get updated in h2 */
c1->pgscan = 5555;