]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup Test: libcgrouptest-multimnt01
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 14:57:54 +0000 (14:57 +0000)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Wed, 17 Dec 2008 14:57:54 +0000 (14:57 +0000)
commit5506f09958450f6d654c30827d8e68140587491a
treecf593f10e74e46446649959fe3193e94e0b010a4
parent39424259a3a058cb5e5368848bf153a5b5e82318
libcgroup Test: libcgrouptest-multimnt01

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 task pid is checked if it exists under the root
group's tasks file of both the mountpoints.

The patch also puts the common code in a function.

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