oomd: add unit test to repro #18926
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user