]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup Test: libcgrouptest-multimnt03
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 14:59:35 +0000 (14:59 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 14:59:35 +0000 (14:59 +0000)
commitb828e0424b82e1a6c74b2d68aae3d6da73f27809
treef2604bb83bcccc67b16d60cdacb51ccb3554d223
parentbad09101b968e56f4b85aa964258b7aef33d72c2
libcgroup Test: libcgrouptest-multimnt03

This patch adds a testcase for libcgroup API cgroup_attach_task() testing.
The API is called under the multimount condition(FS_MOUNTED=2) and return
values are checked. The argument of the api is a valid group under one
controller's(say cpu) mountpoint. This group exist only under one
controller(cpu). So the attached task is checked under this group for this(cpu)
controller and under the root group for the other(memory) controller.
In the second call the argument is a group under other controller(memory)
and hence now task is checked under the two groups of both controllers.
In the third calll we give the argument as a non existing group, so the
return value should be ECGROUPNOTEXIST.

Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@243 4f4bb910-9a46-0410-90c8-c897d4f1cd53
tests/libcgrouptest01.c