summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:24:07 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:24:07 +0000
commit7f0f54d78fe04ee16a82a1cc40687395ce684dd7 (patch)
tree66960ee10d9ed6465ab8f419d13ad87fff8b0fa3 /tests
parent1f80116482b1f158838d690c9a4f2989818769bc (diff)
downloadlibcg-7f0f54d78fe04ee16a82a1cc40687395ce684dd7.tar.gz
libcg-7f0f54d78fe04ee16a82a1cc40687395ce684dd7.tar.xz
libcg-7f0f54d78fe04ee16a82a1cc40687395ce684dd7.zip
libcgroup Test:
Minor cleanups. Signed-off-by: Sudhir KUmar <skumar@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@280 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests')
-rw-r--r--tests/libcgrouptest01.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c
index 766dc98..16c00ac 100644
--- a/tests/libcgrouptest01.c
+++ b/tests/libcgrouptest01.c
@@ -214,9 +214,9 @@ int main(int argc, char *argv[])
*/
retval = cgroup_attach_task_pid(nullcgroup, -1);
if (retval != 0)
- message(++i, PASS, "attach_task_pid()", retval, extra);
+ message(4, PASS, "attach_task_pid()", retval, extra);
else
- message(++i, FAIL, "attach_task_pid()", retval, extra);
+ message(4, FAIL, "attach_task_pid()", retval, extra);
/*
* Test05: Create a valid cgroup structure
@@ -582,7 +582,7 @@ int main(int argc, char *argv[])
*/
test_cgroup_attach_task(0, ctl1_cgroup1, "ctl1_group1",
- NULL, FS_MULTI_MOUNTED, 20, 6);
+ NULL, FS_MULTI_MOUNTED, 20, 8);
/*
* Test07: Call cgroup_attach_task() with a group with ctl2
@@ -592,7 +592,7 @@ int main(int argc, char *argv[])
*/
test_cgroup_attach_task(0, ctl2_cgroup1, "ctl1_group1",
- "ctl2_group1", FS_MULTI_MOUNTED, 20, 7);
+ "ctl2_group1", FS_MULTI_MOUNTED, 20, 9);
/*
* Test: Create a valid cgroup structure
@@ -608,7 +608,7 @@ int main(int argc, char *argv[])
*/
test_cgroup_attach_task(ECGROUPNOTEXIST, ctl2_cgroup2,
- NULL, NULL, FS_MULTI_MOUNTED, 2, 8);
+ NULL, NULL, FS_MULTI_MOUNTED, 2, 11);
/*
* Create another valid cgroup structure with same group name
@@ -799,7 +799,7 @@ int main(int argc, char *argv[])
*/
test_cgroup_attach_task(0, common_cgroup, "commongroup",
- "commongroup", FS_MULTI_MOUNTED, 1, 12);
+ "commongroup", FS_MULTI_MOUNTED, 1, 20);
/*
* Test13: Create a valid cgroup structure to modify the