]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
gunit/009: adopt the cgroup_set_values_recursive() changes
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 21 Mar 2023 09:12:30 +0000 (09:12 +0000)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 23 Mar 2023 18:26:42 +0000 (12:26 -0600)
cgroup_set_values_recursive(), third argument ignore_non_dirty_values no
more suppress the errors but skips writing of the controller setting
that isn't marked dirty, propagate the changes to the test cases too.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit fadef32c8f7b09cca543bd111c82d50933c7e387)

tests/gunit/009-cgroup_set_values_recursive.cpp

index eeaf8ec0da1f51b9e61369aeb8e4fe4ddcf83ee8..7e6bad9ccc7f601b3e57796ccf2f987f97efe0eb 100644 (file)
@@ -103,7 +103,7 @@ TEST_F(SetValuesRecursiveTest, SuccessfulSetValues)
                ctrlr.index++;
        }
 
-       ret = cgroup_set_values_recursive(PARENT_DIR, &ctrlr, true);
+       ret = cgroup_set_values_recursive(PARENT_DIR, &ctrlr, false);
        ASSERT_EQ(ret, 0);
 
        for (i = 0; i < NAMES_CNT; i++) {