From: Tom Hromatka Date: Thu, 16 Jul 2020 19:57:49 +0000 (-0600) Subject: tests: Set cgroup version in test 006 X-Git-Tag: v2.0.3~11^2^2~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01c8e2bc7f43d5a9fa8f335aa2ecbe47ce17538;p=thirdparty%2Flibcgroup.git 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 --- 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);