This commit explicitly sets the cgroup version in the fictitious mount table in test 006. With the introduction of the CGROUP_UNK enumeration value, this test fails without explicitly setting the version to CGROUP_V1.
Signed-off-by: Tom Hromatka <tom.hroma...@oracle.com> --- gunit/006-cgroup_get_cgroup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gunit/006-cgroup_get_cgroup.cpp b/gunit/006-cgroup_get_cgroup.cpp index 1c97cde8774e..e5ee07fbb020 100644 --- a/gunit/006-cgroup_get_cgroup.cpp +++ b/gunit/006-cgroup_get_cgroup.cpp @@ -131,6 +131,7 @@ class CgroupGetCgroupTest : public ::testing::Test { "%s", CONTROLLERS[i]); snprintf(cg_mount_table[i].mount.path, FILENAME_MAX, "%s/%s", PARENT_DIR, CONTROLLERS[i]); + cg_mount_table[i].version = CGROUP_V1; ret = mkdir(cg_mount_table[i].mount.path, MODE); ASSERT_EQ(ret, 0); -- 2.25.3 _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel