From: Tom Hromatka Date: Wed, 10 Mar 2021 18:21:25 +0000 (+0000) Subject: gunit: Update test 009 to match cgroup_set_values_recursive() X-Git-Tag: v2.0.3~11^2^2~22^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1adcd603a647455c4cf5badb4cbf164b9c0bd01;p=thirdparty%2Flibcgroup.git gunit: Update test 009 to match cgroup_set_values_recursive() cgroup_set_values_recursive() had a parameter added to ignore the dirty flag on write failures. This is needed by cgroup_modify_cgroup() as some writes may be expected to fail. Update test 009 to utilize this new flag. Note that cgroup_set_values_recursive() is now being heavily tested by the functional tests, so this unit test is no longer the primary means of testing this function. Signed-off-by: Tom Hromatka --- diff --git a/gunit/009-cgroup_set_values_recursive.cpp b/gunit/009-cgroup_set_values_recursive.cpp index 7f4aaa0d..64b0169b 100644 --- a/gunit/009-cgroup_set_values_recursive.cpp +++ b/gunit/009-cgroup_set_values_recursive.cpp @@ -116,7 +116,7 @@ TEST_F(SetValuesRecursiveTest, SuccessfulSetValues) ctrlr.index++; } - ret = cgroup_set_values_recursive(PARENT_DIR, &ctrlr); + ret = cgroup_set_values_recursive(PARENT_DIR, &ctrlr, true); ASSERT_EQ(ret, 0); for (i = 0; i < NAMES_CNT; i++) {