From d10cb56372f8da86ef11dba376c40b61aef5fa49 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:23:16 +0000 Subject: libcgroup Test: change control value This patch changes the control values to be written to control file. The write of value 7000000 to memory.limt_in_bytes resulted in a silent write of 7000064, because of which modify() test case was failing. Signed-off-by: Sudhir Kumar git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@278 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest01.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/libcgrouptest01.c b/tests/libcgrouptest01.c index 5439d4f..07bb543 100644 --- a/tests/libcgrouptest01.c +++ b/tests/libcgrouptest01.c @@ -649,7 +649,7 @@ int main(int argc, char *argv[]) */ strncpy(group, "ctl2_group1", sizeof(group)); retval = set_controller(ctl2, controller_name, control_file); - strncpy(val_string, "70000000", sizeof(val_string)); + strncpy(val_string, "7000064", sizeof(val_string)); if (retval) { fprintf(stderr, "Setting controller failled " @@ -834,7 +834,7 @@ int main(int argc, char *argv[]) printf("The cgroup_modify_cgroup() test will fail\n"); } - strncpy(val_string, "7000000", sizeof(val_string)); + strncpy(val_string, "7000064", sizeof(val_string)); retval = cgroup_add_value_string(sec_controller, control_file, val_string); if (retval) @@ -857,7 +857,7 @@ int main(int argc, char *argv[]) control_file); build_path(path_control_file, mountpoint2, "commongroup", control_file); - strncpy(val_string, "7000000", + strncpy(val_string, "7000064", sizeof(val_string)); if (!group_modified(path_control_file, STRING)) { strncat(extra, " group modified under" -- cgit