From 9fb4ce1966418db814582bd3778258b450b079ee Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:07:35 +0000 Subject: libcgroup Test: fixed certain rejects The following patch makes certain cleanups for the patchset to apply without any rejects. However the lines of code are being changed in one of the next patches. Signed-off-by: Sudhir Kumar git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@251 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/libcgrouptest01.c') diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 727e7d6..cca1210 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -472,7 +472,7 @@ int main(int argc, char *argv[]) strcat(tasksfile, "/tasks"); strncpy(tasksfile2, mountpoint2, sizeof(mountpoint)); strcat(tasksfile2, "/tasks"); - if (check_task(tasksfile) || i-- && check_task(tasksfile2)) + if (check_task(tasksfile) || (i-- && check_task(tasksfile2))) return -1; } else { printf("Test[2:%2d]\tFAIL: cgroup_attach_task() ret: %d\n",\ @@ -573,7 +573,7 @@ int main(int argc, char *argv[]) strncpy(tasksfile2, mountpoint2, sizeof(tasksfile2)); strncat(tasksfile2, "/tasks", sizeof(tasksfile2)); - if (check_task(tasksfile) || i-- && check_task(tasksfile2)) + if (check_task(tasksfile) || (i-- && check_task(tasksfile2))) return -1; } else { printf("Test[2:%2d]\tFAIL: cgroup_attach_task() ret: %d\n",\ @@ -598,7 +598,7 @@ int main(int argc, char *argv[]) strncat(tasksfile2, "/memgroup1", sizeof(tasksfile2)); strncat(tasksfile2, "/tasks", sizeof(tasksfile2)); - if (check_task(tasksfile) || i-- && check_task(tasksfile2)) + if (check_task(tasksfile) || (i-- && check_task(tasksfile2))) return -1; } else { printf("Test[2:%2d]\tFAIL: cgroup_attach_task() ret: %d\n",\ -- cgit