Menu

#40 cgroup_get_cgroup() returns NULL on an existing group

closed-invalid
nobody
None
5
2008-11-22
2008-11-17
No

Hi,
Please look at the following code,
(group1 already exist in filesystem)
/* Test with name filled cgroup */
cgroup_filled = cgroup_new_cgroup("group1");
if (!cgroup_filled)
message(i++, FAIL, "new_cgroup()", 0, info[NOMESSAGE]);

cgroup_filled = cgroup_get_cgroup(cgroup_filled);
if (cgroup_filled)
message(i++, PASS, "get_cgroup()", 0, info[NOMESSAGE]);
else
message(i++, FAIL, "get_cgroup()", -1, info[NOMESSAGE]);

This test result is
TEST15:FAIL : cgroup_get_cgroup() Ret Value = -1

Please ignore the return value as it is dummy int.

thus the api cgroup_get_cgroup() is failing.

Thanks
Sudhir

Discussion

  • Dhaval Giani

    Dhaval Giani - 2008-11-22

    cgroup_get_cgroup API was modified. It now returns int, and returns 0 on success.

     
  • Dhaval Giani

    Dhaval Giani - 2008-11-22
    • status: open --> closed-invalid
     

Log in to post a comment.