From af96447cdd21fad0e16a6ecbda4cdc828370e5cb Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Mon, 22 Dec 2008 19:00:20 +0000 Subject: libcgroup: create function for cgroup_modify_cgroup From: Sudhir Kumar This patch creates the function test_cgroup_modify_cgroup(), to modify a group in fs, and this way eliminates lot of redundant code. This patch however may mesh up the numbering of testcases, which will be cleaned up in a later patch. Signed-off-by: Sudhir Kumar Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@288 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/libcgrouptest.h') diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index a2644ae..af427f5 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -68,7 +68,6 @@ uid_t control_uid; gid_t control_gid; uid_t tasks_uid; gid_t tasks_gid; - /* this variable is never modified */ int fs_mounted; @@ -89,6 +88,9 @@ void test_cgroup_create_cgroup(int retcode, struct cgroup *cgrp, const char *name, int common, int mpnt, int ign, int i); void test_cgroup_delete_cgroup(int retcode, struct cgroup *cgrp, const char *name, int common, int mpnt, int ign, int i); +void test_cgroup_modify_cgroup(int retcode, struct cgroup *cgrp, + const char *name, int which_ctl, int ctl1, int ctl2, + int value_type, int i); /* API test functions end here */ void test_cgroup_compare_cgroup(int ctl1, int ctl2, int i); -- cgit