From 8f5fb8e44b06100855889be77d436d19bd65f11f Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Mon, 22 Dec 2008 18:56:50 +0000 Subject: libcgroup: create function for cgroup_create_cgroup From: Sudhir Kumar 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 Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@286 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/libcgrouptest.h') 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); -- cgit