summaryrefslogtreecommitdiffstats
path: root/tests/libcgrouptest01.c
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:07:35 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:07:35 +0000
commit9fb4ce1966418db814582bd3778258b450b079ee (patch)
tree8cfb2a2f357ce78d8f2db4e656239b44af5b55df /tests/libcgrouptest01.c
parent03a824bf683520a432dade4343d74b0b44dc1bab (diff)
downloadlibcg-9fb4ce1966418db814582bd3778258b450b079ee.tar.gz
libcg-9fb4ce1966418db814582bd3778258b450b079ee.tar.xz
libcg-9fb4ce1966418db814582bd3778258b450b079ee.zip
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 <skumar@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@251 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest01.c')
-rw-r--r--tests/libcgrouptest01.c6
1 files changed, 3 insertions, 3 deletions
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",\