]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Tue, 1 Jul 2008 13:48:58 +0000 (13:48 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Tue, 1 Jul 2008 13:48:58 +0000 (13:48 +0000)
commit2fd38347726e379945d5506136f7e1fe656bcde7
treed7284cbdb35c08b25adf50e630e09270ae761822
parent2c4706487dee1138e7f76d9e188a7c9bbf4475ef
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>

libcgroup: libcgroup testcases for cgroup_attach_task()

This patch adds 3 testcases for libcgroup API cgroup_attach_task() testing. The API
is called under  the same but two conditions(FS_MOUNTED=0/1) and return
values are checked. For FS_MOUNTED=1 the API is first called without
intializing ie without calling cgroup_init(), and then after cg_init(). Each time
the null cgroup is passed. The task is checked if it exists under the root
group's tasks file.
The 4th testcase calls cgroup_attach_task_pid() with an invalid pid.

Testcases for FS_MOUNTED=2 have to be added.

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@89 4f4bb910-9a46-0410-90c8-c897d4f1cd53
tests/libcgrouptest01.c