From 7f0f54d78fe04ee16a82a1cc40687395ce684dd7 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:24:07 +0000 Subject: libcgroup Test: Minor cleanups. Signed-off-by: Sudhir KUmar git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@280 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/libcgrouptest01.c') 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 -- cgit