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
cgroup_get_cgroup API was modified. It now returns int, and returns 0 on success.