summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2008-12-22 18:56:50 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2008-12-22 18:56:50 +0000
commit8f5fb8e44b06100855889be77d436d19bd65f11f (patch)
tree094461309896254586af0348de9cfb83d5af9c59 /tests/libcgrouptest.h
parent0889af09902b654bc76180b1d27ed6e2c372b79a (diff)
downloadlibcg-8f5fb8e44b06100855889be77d436d19bd65f11f.tar.gz
libcg-8f5fb8e44b06100855889be77d436d19bd65f11f.tar.xz
libcg-8f5fb8e44b06100855889be77d436d19bd65f11f.zip
libcgroup: create function for cgroup_create_cgroup
From: Sudhir Kumar <skumar@linux.vnet.ibm.com> This patch creates the function test_cgroup_create_cgroup(), to create a group in fs from a cgroup structure, 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 once the functions are created for all other apis. 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@286 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index 369a965..1be3829 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -85,6 +85,8 @@ void test_cgroup_attach_task(int retcode, struct cgroup *cgroup1,
int k, int i);
struct cgroup *create_new_cgroup_ds(int ctl, const char *grpname,
int value_type, int i);
+void test_cgroup_create_cgroup(int retcode, struct cgroup *cgrp,
+ const char *name, int common, int mpnt, int ign, int i);
/* API test functions end here */
void test_cgroup_compare_cgroup(int ctl1, int ctl2, int i);