From 19211d35f8bf659f2b30d911a6997b89c834ef9f Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:19:22 +0000 Subject: 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 git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@269 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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)) { -- cgit