summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2008-07-01 13:48:58 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2008-07-01 13:48:58 +0000
commit2fd38347726e379945d5506136f7e1fe656bcde7 (patch)
treed7284cbdb35c08b25adf50e630e09270ae761822 /tests/libcgrouptest.h
parent2c4706487dee1138e7f76d9e188a7c9bbf4475ef (diff)
downloadlibcg-2fd38347726e379945d5506136f7e1fe656bcde7.tar.gz
libcg-2fd38347726e379945d5506136f7e1fe656bcde7.tar.xz
libcg-2fd38347726e379945d5506136f7e1fe656bcde7.zip
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
Diffstat (limited to 'tests/libcgrouptest.h')
0 files changed, 0 insertions, 0 deletions