From: Balbir Singh Date: Wed, 17 Dec 2008 15:07:35 +0000 (+0000) Subject: libcgroup Test: fixed certain rejects X-Git-Tag: v0.34~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb4ce1966418db814582bd3778258b450b079ee;p=thirdparty%2Flibcgroup.git 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 --- diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 727e7d6b..cca12103 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",\