summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest.h
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 14:57:54 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 14:57:54 +0000
commit5506f09958450f6d654c30827d8e68140587491a (patch)
treecf593f10e74e46446649959fe3193e94e0b010a4 /tests/libcgrouptest.h
parent39424259a3a058cb5e5368848bf153a5b5e82318 (diff)
downloadlibcg-5506f09958450f6d654c30827d8e68140587491a.tar.gz
libcg-5506f09958450f6d654c30827d8e68140587491a.tar.xz
libcg-5506f09958450f6d654c30827d8e68140587491a.zip
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
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r--tests/libcgrouptest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h
index 73c4a9b..63696fc 100644
--- a/tests/libcgrouptest.h
+++ b/tests/libcgrouptest.h
@@ -69,6 +69,7 @@ static int group_modified(char *path_control_file, int value_type);
struct cgroup *new_cgroup(char *group, char *controller_name,
char *control_file, int value_type);
int check_fsmounted();
+static int check_task(char *tasksfile);
static inline pid_t cgrouptest_gettid()
{