mirror of
https://github.com/containers/youki
synced 2026-10-21 02:20:24 +02:00
Cover linux.resources.unified: each value is written to the cgroup file of the same name, memory.swap.max is written as given, and a unified value wins over the value another resource field sets for the same file. These port runc's three resources.unified tests from cgroups.bats and use the same values. A fourth test checks that a key for a controller that is not present makes create fail, as the runtime spec requires, and that no container is left behind. Refs #3605 Signed-off-by: Asifur Rahaman Meeru <asifur.rahaman@meeru.dev>