From a01c8e2bc7f43d5a9fa8f335aa2ecbe47ce17538 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Thu, 16 Jul 2020 13:57:49 -0600 Subject: [PATCH] tests: Set cgroup version in test 006 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 --- 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 1c97cde8..e5ee07fb 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.47.2