From: Kamalesh Babulal Date: Tue, 21 Mar 2023 09:12:30 +0000 (+0000) Subject: gunit/009: adopt the cgroup_set_values_recursive() changes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff7540efb3c42618bb2396a1f6bd7e532cf4dd89;p=thirdparty%2Flibcgroup.git gunit/009: adopt the cgroup_set_values_recursive() changes 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 Signed-off-by: Tom Hromatka (cherry picked from commit fadef32c8f7b09cca543bd111c82d50933c7e387) --- diff --git a/tests/gunit/009-cgroup_set_values_recursive.cpp b/tests/gunit/009-cgroup_set_values_recursive.cpp index eeaf8ec0..7e6bad9c 100644 --- a/tests/gunit/009-cgroup_set_values_recursive.cpp +++ b/tests/gunit/009-cgroup_set_values_recursive.cpp @@ -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++) {