]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-oomd-util: fix running in mkosi 19179/head
authorAnita Zhang <the.anitazha@gmail.com>
Fri, 2 Apr 2021 02:06:26 +0000 (19:06 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Fri, 2 Apr 2021 04:23:24 +0000 (21:23 -0700)
commit080ca0d830d69dea5fb2b07aace54a4402bf7294
tree3141c100af1fc3ce86353a65628c128da2a1ceac
parentea460d79644560bcb1ed2adb4cf30413f285492a
test-oomd-util: fix running in mkosi

When this test is run in mkosi, the previously tested cgroup that we write
xattrs into and the root cgroup are the same.

Since the root cgroup is a live cgroup anyways (vs. the test cgroups which are
remade each time) let's generate the expected preference values from reading
the xattrs instead of assuming it will be NONE.
src/oom/test-oomd-util.c