diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-12-22 19:00:20 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-12-22 19:00:20 +0000 |
commit | af96447cdd21fad0e16a6ecbda4cdc828370e5cb (patch) | |
tree | 49362c608cecfbb8f22d141e6539d7f8cf1eed08 /tests/libcgrouptest.h | |
parent | 893cb90f5dabdce79535d4cc32c07e95b3ec4ead (diff) | |
download | libcg-af96447cdd21fad0e16a6ecbda4cdc828370e5cb.tar.gz libcg-af96447cdd21fad0e16a6ecbda4cdc828370e5cb.tar.xz libcg-af96447cdd21fad0e16a6ecbda4cdc828370e5cb.zip |
libcgroup: create function for cgroup_modify_cgroup
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>
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 <skumar@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@288 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r-- | tests/libcgrouptest.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |