diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:19:22 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:19:22 +0000 |
commit | 19211d35f8bf659f2b30d911a6997b89c834ef9f (patch) | |
tree | 41f92c76e691ca7312a7208f1c4a0b331328e08a /tests/libcgrouptest01.c | |
parent | 6ce960c88547e643377ce22c02964d9c01d074e3 (diff) | |
download | libcg-19211d35f8bf659f2b30d911a6997b89c834ef9f.tar.gz libcg-19211d35f8bf659f2b30d911a6997b89c834ef9f.tar.xz libcg-19211d35f8bf659f2b30d911a6997b89c834ef9f.zip |
libcgroup Test: fix-newly-broken-test
The previous patch creating the function for attach_task() breaks a test case
because of global data usage. This patch fixes that.
(There will be functions corresponding to each API to test all the APIs)
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@269 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest01.c')
-rw-r--r-- | tests/libcgrouptest01.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index a070109..af98d33 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -838,9 +838,12 @@ int main(int argc, char *argv[]) retval = cgroup_modify_cgroup(mod_common_cgroup); /* Check if the values are changed */ if (!retval) { + set_controller(ctl1, controller_name, control_file); build_path(path_control_file, mountpoint, "commongroup", control_file); if (!group_modified(path_control_file, STRING)) { + set_controller(ctl2, controller_name, + control_file); build_path(path_control_file, mountpoint2, "commongroup", control_file); if (!group_modified(path_control_file, STRING)) { |