From 688123a268cdcc198fc49f85c4dbf3e9ceb42f7a Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Tue, 1 Jul 2008 14:12:07 +0000 Subject: libcgroup: Fix invalid pid test case. 0 is a valid PID for cgroup filesystem. It moves the current task into the cgroup. Let's try -1 instead. Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@96 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 2ec63ec..80d8951 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -224,7 +224,7 @@ int main(int argc, char *argv[]) * and invalid pid * Exp outcome: error */ - retval = cgroup_attach_task_pid(nullcgroup, 0); + retval = cgroup_attach_task_pid(nullcgroup, -1); if (retval != 0) printf("Test[1:%2d]\tPASS: cgroup_attach_task_pid() ret: %d\n",\ ++i, retval); -- cgit